Module: MandrillMailer

Defined in:
lib/mandrill_mailer.rb,
lib/mandrill_mailer/mock.rb,
lib/mandrill_mailer/offline.rb,
lib/mandrill_mailer/railtie.rb,
lib/mandrill_mailer/version.rb,
lib/mandrill_mailer/template_mailer.rb

Defined Under Namespace

Classes: Mock, Railtie, TemplateMailer

Constant Summary collapse

VERSION =
"0.4.7"

Class Method Summary collapse

Class Method Details

.configObject



19
20
21
# File 'lib/mandrill_mailer.rb', line 19

def self.config
  MandrillMailer::Railtie.config.mandrill_mailer
end

.configure(&block) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/mandrill_mailer.rb', line 11

def self.configure(&block)
  if block_given?
    block.call(MandrillMailer::Railtie.config.mandrill_mailer)
  else
    MandrillMailer::Railtie.config.mandrill_mailer
  end
end

.deliveriesObject



24
25
26
# File 'lib/mandrill_mailer/offline.rb', line 24

def self.deliveries
  @deliveries ||= []
end