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
|
|
|
|
|
2011-12-22 23:45:32 +00:00
|
|
|
def new_content_entry(account, entry)
|
|
|
|
@account, @entry = account, entry
|
2011-01-18 14:24:42 +00:00
|
|
|
|
2011-12-22 23:45:32 +00:00
|
|
|
subject = t('locomotive.notifications.new_content_entry.subject', :type => entry.content_type.name, :locale => account.locale)
|
2011-01-18 14:24:42 +00:00
|
|
|
|
|
|
|
mail :subject => subject, :to => account.email
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|