Sha256: 8c24280aedbee56d2a047a211d3a35072be0e73fe74bdb42eff96a05c16a1979

Contents?: true

Size: 431 Bytes

Versions: 3

Compression:

Stored size: 431 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.to_presenter, 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

3 entries across 3 versions & 1 rubygems

Version Path
locomotive_cms-2.0.0.rc4 app/mailers/locomotive/notifications.rb
locomotive_cms-2.0.0.rc2 app/mailers/locomotive/notifications.rb
locomotive_cms-2.0.0.rc1 app/mailers/locomotive/notifications.rb