Sha256: fac377b91ed691c59b3fe181648e684b5b759d658418eaa94bbff24bda9a12aa

Contents?: true

Size: 365 Bytes

Versions: 14

Compression:

Stored size: 365 Bytes

Contents

module Spree
  class BaseMailer < ActionMailer::Base
    def from_address
      Spree::Config[:mails_from]
    end

    def money(amount, currency = Spree::Config[:currency])
      Spree::Money.new(amount, currency: currency).to_s
    end
    helper_method :money

    def mail(headers={}, &block)
      super if Spree::Config[:send_core_emails]
    end

  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
spree_core-2.3.13 app/mailers/spree/base_mailer.rb
spree_core-2.3.12 app/mailers/spree/base_mailer.rb
spree_core-2.3.11 app/mailers/spree/base_mailer.rb
spree_core-2.3.10 app/mailers/spree/base_mailer.rb
spree_core-2.3.9 app/mailers/spree/base_mailer.rb
spree_core-2.3.8 app/mailers/spree/base_mailer.rb
spree_core-2.3.7 app/mailers/spree/base_mailer.rb
spree_core-2.3.6 app/mailers/spree/base_mailer.rb
spree_core-2.3.5 app/mailers/spree/base_mailer.rb
spree_core-2.3.4 app/mailers/spree/base_mailer.rb
spree_core-2.3.3 app/mailers/spree/base_mailer.rb
spree_core-2.3.2 app/mailers/spree/base_mailer.rb
spree_core-2.3.1 app/mailers/spree/base_mailer.rb
spree_core-2.3.0 app/mailers/spree/base_mailer.rb