Sha256: 08728866a208aa8ea9274e0ae13fe483482c2b9ad2df3e09c53ca142f3342fe4

Contents?: true

Size: 401 Bytes

Versions: 48

Compression:

Stored size: 401 Bytes

Contents

# frozen_string_literal: true

module Spree
  class BaseMailer < ActionMailer::Base
    def from_address(store)
      store.mail_from_address
    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

48 entries across 48 versions & 2 rubygems

Version Path
solidus_core-2.10.5 app/mailers/spree/base_mailer.rb
solidus_core-2.10.3 app/mailers/spree/base_mailer.rb
solidus_core-2.10.2 app/mailers/spree/base_mailer.rb
solidus_core-2.9.6 app/mailers/spree/base_mailer.rb
solidus_core-2.8.6 app/mailers/spree/base_mailer.rb
solidus_core-2.10.1 app/mailers/spree/base_mailer.rb
solidus_core-2.9.5 app/mailers/spree/base_mailer.rb
solidus_core-2.10.0 app/mailers/spree/base_mailer.rb
solidus_core-2.9.4 app/mailers/spree/base_mailer.rb
solidus_core-2.6.6 app/mailers/spree/base_mailer.rb
solidus_core-2.7.4 app/mailers/spree/base_mailer.rb
solidus_core-2.8.5 app/mailers/spree/base_mailer.rb
solidus_core-2.9.3 app/mailers/spree/base_mailer.rb
solidus_core-2.9.2 app/mailers/spree/base_mailer.rb
solidus_core-2.10.0.beta1 app/mailers/spree/base_mailer.rb
solidus_core-2.7.3 app/mailers/spree/base_mailer.rb
solidus_core-2.6.5 app/mailers/spree/base_mailer.rb
solidus_core-2.9.1 app/mailers/spree/base_mailer.rb
solidus_core-2.9.0 app/mailers/spree/base_mailer.rb
solidus_core-2.9.0.rc.1 app/mailers/spree/base_mailer.rb