Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class NotifyMailer < ActionMailer::Base
- default :from => "playerhaters@feedback.heylocal.us"
- def completed(user, discussion_id)
- if user[:get_email_for_completions]
- @user = user
- @discussion = Discussion.find(discussion_id)
- mail :to => @user.email, :subject => "One of your discussions has been marked completed"
- end
- # ...
- end
Add Comment
Please, Sign In to add comment