Fixed syntax error.
This commit is contained in:
parent
eb0a4bd7a9
commit
49ed627219
1 changed files with 2 additions and 1 deletions
|
@ -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 )
|
||||||
|
|
Loading…
Reference in a new issue