Sha256: d61d76857092f22c06052c2ee1b617e9f7d8ae7513b7252b7b881d63387283af
Contents?: true
Size: 622 Bytes
Versions: 26
Compression:
Stored size: 622 Bytes
Contents
module Locomotive class Notifications < ActionMailer::Base default from: Locomotive.config.mailer_sender def new_content_entry(account, entry) @account, @entry, @type = account, entry, entry.content_type if Locomotive.config.multi_sites_or_manage_domains? @domain = entry.site.domains.first else @domain = ActionMailer::Base.default_url_options[:host] || 'localhost' end subject = t('locomotive.notifications.new_content_entry.subject', domain: @domain, type: @type.name, locale: account.locale) mail subject: subject, to: account.email end end end
Version data entries
26 entries across 26 versions & 1 rubygems