Module: MandrillBatchMailer
- Includes:
- ActiveSupport::Configurable
- Defined in:
- lib/mandrill_batch_mailer.rb,
lib/mandrill_batch_mailer/version.rb,
lib/mandrill_batch_mailer/base_mailer.rb
Defined Under Namespace
Classes: BaseMailer
Constant Summary collapse
- ENDPOINT =
'https://mandrillapp.com/api/1.0/messages/'\ 'send-template.json'
- VERSION =
'1.2.0'
Instance Attribute Summary collapse
-
#logger ⇒ Object
writeonly
Sets the attribute logger.
Class Method Summary collapse
Instance Attribute Details
#logger=(value) ⇒ Object (writeonly)
Sets the attribute logger
25 26 27 |
# File 'lib/mandrill_batch_mailer.rb', line 25 def logger=(value) @logger = value end |
Class Method Details
.logger ⇒ Object
27 28 29 |
# File 'lib/mandrill_batch_mailer.rb', line 27 def self.logger @logger ||= rails_logger || Logger.new(STDOUT) end |
.rails_logger ⇒ Object
31 32 33 |
# File 'lib/mandrill_batch_mailer.rb', line 31 def self.rails_logger defined?(Rails) && Rails.logger end |