Permalink
Browse files

task controller

  • Loading branch information...
1 parent ef7bf71 commit 69cc167c14a75ee13169cad43380830b7ecee6e7 @saru saru committed Jul 1, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/task.rb
View
@@ -20,7 +20,7 @@ def send_to task, comment
assign_to = Task.find(task).assign_to.to_i
user = User.find(assign_to)
user_objects.push user
- message_str :title_from =>"Task", :from => "me@fromdomain.com", :title_to =>"Assign To", :to => user.email ,
+ message_str :title_from =>"Task: #{Task.find(task).name if Task.find(task) != nil }", :from => "me@fromdomain.com", :title_to =>"#{Task.find(task).name if Task.find(task) != nil }", :to => user.email ,
:subject => "Comment" , :body => comment
Delayed::Job.enqueue MailingJob.new(user_objects, text_message) #, 0, 4.minutes.from_now
end

0 comments on commit 69cc167

Please sign in to comment.