engine/app/mailers/locomotive/notifications.rb

15 lines
418 B
Ruby
Raw Normal View History

module Locomotive
class Notifications < ActionMailer::Base
default :from => Locomotive.config.mailer_sender
2012-04-17 01:02:31 +00:00
def new_content_entry(account, entry)
2012-04-13 12:38:00 +00:00
@account, @entry, @type = account, entry, 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