Class: Notifier
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Notifier
- Defined in:
- app/models/notifier.rb
Instance Method Summary collapse
- #activation_confirmation(user) ⇒ Object
- #activation_instructions(user) ⇒ Object
- #new_comment_alert(comment) ⇒ Object
- #password_reset_instructions(user) ⇒ Object
Instance Method Details
#activation_confirmation(user) ⇒ Object
14 15 16 17 18 |
# File 'app/models/notifier.rb', line 14 def activation_confirmation(user) setup(user) subject "Welcome to #{DOMAIN}" body :root_url => root_url end |
#activation_instructions(user) ⇒ Object
8 9 10 11 12 |
# File 'app/models/notifier.rb', line 8 def activation_instructions(user) setup(user) subject "Activation Instructions" body :account_activation_url => activate_url(user.perishable_token) end |
#new_comment_alert(comment) ⇒ Object
20 21 22 23 24 |
# File 'app/models/notifier.rb', line 20 def new_comment_alert(comment) setup(comment.post.user) subject "New comment on #{comment.post.title}" body :comment => comment end |
#password_reset_instructions(user) ⇒ Object
2 3 4 5 6 |
# File 'app/models/notifier.rb', line 2 def password_reset_instructions(user) setup(user) subject "Password Reset Instructions" body :edit_password_reset_url => edit_password_reset_url(user.perishable_token) end |