Guest User

Untitled

a guest
Feb 19th, 2018
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. class NotifyMailer < ActionMailer::Base
  2. default :from => "playerhaters@feedback.heylocal.us"
  3.  
  4. def completed(user, discussion_id)
  5. if user[:get_email_for_completions]
  6. @user = user
  7. @discussion = Discussion.find(discussion_id)
  8.  
  9. mail :to => @user.email, :subject => "One of your discussions has been marked completed"
  10. end
  11.  
  12. # ...
  13.  
  14. end
Add Comment
Please, Sign In to add comment