Class: Workers::Receive

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

Instance Method Summary collapse

Methods inherited from Base

#suppress_annoying_errors

Instance Method Details

#perform(user_id, xml, salmon_author_id) ⇒ Object


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

def perform(user_id, xml, salmon_author_id)
  suppress_annoying_errors do
    user = User.find(user_id)
    salmon_author = Person.find(salmon_author_id)
    zord = Postzord::Receiver::Private.new(user, :person => salmon_author)
    zord.parse_and_receive(xml)
  end
end