2011-10-30 23:02:41 +00:00
|
|
|
module Locomotive
|
2011-01-18 14:24:42 +00:00
|
|
|
class Notifications < ActionMailer::Base
|
|
|
|
|
|
|
|
default :from => Locomotive.config.mailer_sender
|
|
|
|
|
|
|
|
def new_content_instance(account, content)
|
|
|
|
@account, @content = account, content
|
|
|
|
|
2011-10-30 23:02:41 +00:00
|
|
|
subject = t('locomotive.notifications.new_content_instance.subject', :type => content.content_type.name, :locale => account.locale)
|
2011-01-18 14:24:42 +00:00
|
|
|
|
|
|
|
mail :subject => subject, :to => account.email
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|