Class: Locomotive::Notifications
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Locomotive::Notifications
- Defined in:
- app/mailers/locomotive/notifications.rb
Instance Method Summary collapse
Instance Method Details
#new_content_entry(account, entry) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/mailers/locomotive/notifications.rb', line 6 def new_content_entry(account, entry) @site, @account = entry.site, account @entry, @type = entry, entry.content_type @domain = entry.site.domains.first || ActionMailer::Base.[:host] || 'localhost' subject = new_content_entry_subject(entry, domain: @domain, type: @type.name, locale: account.locale) mail subject: subject, to: account.email end |