Module: DefraRubyEmail

Defined in:
lib/defra_ruby_email.rb,
lib/defra_ruby_email/engine.rb,
lib/defra_ruby_email/version.rb,
lib/defra_ruby_email/configuration.rb,
lib/defra_ruby_email/last_email_cache.rb,
app/mailers/defra_ruby_email/test_mailer.rb,
lib/defra_ruby_email/last_email_observer.rb,
lib/defra_ruby_email/last_notify_message.rb,
app/controllers/defra_ruby_email/last_email_controller.rb,
app/controllers/defra_ruby_email/application_controller.rb,
app/controllers/defra_ruby_email/last_notify_message_controller.rb

Defined Under Namespace

Classes: ApplicationController, Configuration, Engine, LastEmailCache, LastEmailController, LastEmailObserver, LastNotifyMessage, LastNotifyMessageController, TestMailer

Constant Summary collapse

VERSION =
"1.2.0"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



12
13
14
# File 'lib/defra_ruby_email.rb', line 12

def configuration
  @configuration ||= Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



23
24
25
# File 'lib/defra_ruby_email.rb', line 23

def self.configure
  yield(configuration)
end

.reset_configurationObject

Added for testing. Without we cannot test both a config object with and with set values in the same rspec session



18
19
20
# File 'lib/defra_ruby_email.rb', line 18

def reset_configuration
  @configuration = nil
end