Class: Spree::BaseMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/spree/base_mailer.rb

Direct Known Subclasses

CartonMailer, OrderMailer, ReimbursementMailer, TestMailer

Instance Method Summary (collapse)

Instance Method Details

- (Object) from_address(store)



3
4
5
# File 'app/mailers/spree/base_mailer.rb', line 3

def from_address(store)
  store.mail_from_address
end

- (Object) mail(headers = {}, &block)



12
13
14
# File 'app/mailers/spree/base_mailer.rb', line 12

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

- (Object) money(amount, currency = Spree::Config[:currency])



7
8
9
# File 'app/mailers/spree/base_mailer.rb', line 7

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