Class: Spree::BaseMailer

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

Direct Known Subclasses

OrderMailer, ShipmentMailer, TestMailer

Instance Method Summary collapse

Instance Method Details

#from_addressObject


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

def from_address
  Spree::Config[:mails_from]
end

#money(amount) ⇒ Object


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

def money(amount)
  Spree::Money.new(amount).to_s
end