Class: Spree::Core::MailMethod
- Inherits:
-
Object
- Object
- Spree::Core::MailMethod
- Defined in:
- lib/spree/core/mail_method.rb
Instance Method Summary collapse
- #deliver!(mail) ⇒ Object
-
#initialize(options = {}) ⇒ MailMethod
constructor
A new instance of MailMethod.
- #mailer ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ MailMethod
Returns a new instance of MailMethod.
4 5 |
# File 'lib/spree/core/mail_method.rb', line 4 def initialize(={}) end |
Instance Method Details
#deliver!(mail) ⇒ Object
7 8 9 10 11 |
# File 'lib/spree/core/mail_method.rb', line 7 def deliver!(mail) if Config.enable_mail_delivery mailer.deliver!(mail) end end |
#mailer ⇒ Object
13 14 15 |
# File 'lib/spree/core/mail_method.rb', line 13 def mailer mailer_class.new(mail_server_settings) end |