Class: Notifier
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Notifier
- Defined in:
- lib/simply_notify.rb
Instance Method Summary collapse
Instance Method Details
#new_notification(recipient, url, subject) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/simply_notify.rb', line 8 def new_notification(recipient, url, subject) track user: recipient if url.nil? @url = Rails.application.config.absolute_site_url mail(to: recipient.email, subject: subject) else @url = url mail(to: recipient.email, subject: subject) end end |