Fixed syntax error.

This commit is contained in:
Martin Edenhofer 2014-02-03 19:36:59 +01:00
parent eb0a4bd7a9
commit 49ed627219

View file

@ -17,7 +17,8 @@ class Observer::Ticket::Article::CommunicateEmail < ActiveRecord::Observer
type = Ticket::Article::Type.lookup( :id => record.ticket_article_type_id ) type = Ticket::Article::Type.lookup( :id => record.ticket_article_type_id )
return if type['name'] != 'email' return if type['name'] != 'email'
Delayed::Job.enqueue( Observer::Ticket::Article::CommunicateEmail::Send.new( record.id ) # send background job
Delayed::Job.enqueue( Observer::Ticket::Article::CommunicateEmail::Send.new( record.id ) )
end end
class Send < Struct.new( :id ) class Send < Struct.new( :id )