Class: Workers::ReceiveEncryptedSalmon

Inherits:
Base
  • Object
show all
Defined in:
app/workers/receive_encrypted_salmon.rb

Instance Method Summary collapse

Methods inherited from Base

#suppress_annoying_errors

Instance Method Details

#perform(user_id, xml) ⇒ Object


10
11
12
13
14
15
16
# File 'app/workers/receive_encrypted_salmon.rb', line 10

def perform(user_id, xml)
  suppress_annoying_errors do
    user = User.find(user_id)
    zord = Postzord::Receiver::Private.new(user, :salmon_xml => xml)
    zord.perform!
  end
end