From 49ed627219f6861be51bf74b811f0d3f8c5b28ec Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Mon, 3 Feb 2014 19:36:59 +0100 Subject: [PATCH] Fixed syntax error. --- app/models/observer/ticket/article/communicate_email.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/observer/ticket/article/communicate_email.rb b/app/models/observer/ticket/article/communicate_email.rb index 9a83d7c4c..bcecb0acd 100644 --- a/app/models/observer/ticket/article/communicate_email.rb +++ b/app/models/observer/ticket/article/communicate_email.rb @@ -17,7 +17,8 @@ class Observer::Ticket::Article::CommunicateEmail < ActiveRecord::Observer type = Ticket::Article::Type.lookup( :id => record.ticket_article_type_id ) 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 class Send < Struct.new( :id )