Sha256: f329b83ba62ade66ed027daf45fbe896b2fcb87fd9800991b77f862fbb2a85ca

Contents?: true

Size: 418 Bytes

Versions: 7

Compression:

Stored size: 418 Bytes

Contents

module Locomotive
  class Notifications < ActionMailer::Base

    default :from => Locomotive.config.mailer_sender

    def new_content_entry(account, entry)
      @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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
locomotive_cms-2.0.0.rc11 app/mailers/locomotive/notifications.rb
locomotive_cms-2.0.0.rc10 app/mailers/locomotive/notifications.rb
locomotive_cms-2.0.0.rc9 app/mailers/locomotive/notifications.rb
locomotive_cms-2.0.0.rc8 app/mailers/locomotive/notifications.rb
locomotive_cms-2.0.0.rc7 app/mailers/locomotive/notifications.rb
locomotive_cms-2.0.0.rc6 app/mailers/locomotive/notifications.rb
locomotive_cms-2.0.0.rc5 app/mailers/locomotive/notifications.rb