engine/app/mailers/locomotive/notifications.rb

15 lines
431 B
Ruby
Raw Normal View History

module Locomotive
class Notifications < ActionMailer::Base
default :from => Locomotive.config.mailer_sender
def new_content_entry(account, entry)
@account, @entry, @type = account, entry.to_presenter, entry.content_type
subject = t('locomotive.notifications.new_content_entry.subject', :type => @type.name, :locale => account.locale)
mail :subject => subject, :to => account.email
end
end
end