engine/app/mailers/locomotive/notifications.rb

15 lines
418 B
Ruby

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