Class: Spree::BaseMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Spree::BaseMailer
show all
- Defined in:
- app/mailers/spree/base_mailer.rb
Instance Method Summary
collapse
Instance Method Details
#bcc_address(store) ⇒ Object
9
10
11
|
# File 'app/mailers/spree/base_mailer.rb', line 9
def bcc_address(store)
store.bcc_email
end
|
#from_address(store) ⇒ Object
5
6
7
|
# File 'app/mailers/spree/base_mailer.rb', line 5
def from_address(store)
store.mail_from_address
end
|
#mail(headers = {}, &block) ⇒ Object
18
19
20
|
# File 'app/mailers/spree/base_mailer.rb', line 18
def mail( = {}, &block)
super if Spree::Config[:send_core_emails]
end
|
#money(amount, currency = Spree::Config[:currency]) ⇒ Object
13
14
15
|
# File 'app/mailers/spree/base_mailer.rb', line 13
def money(amount, currency = Spree::Config[:currency])
Spree::Money.new(amount, currency:).to_s
end
|