Module: EasyMailPreview

Defined in:
lib/easy_mail_preview.rb,
lib/easy_mail_preview/engine.rb,
lib/easy_mail_preview/version.rb,
app/helpers/easy_mail_preview/emails_helper.rb,
app/helpers/easy_mail_preview/application_helper.rb,
app/controllers/easy_mail_preview/application_controller.rb

Defined Under Namespace

Modules: ApplicationHelper, EmailsHelper Classes: ApplicationController, EmailsController, Engine, Mailer

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.configObject



4
5
6
# File 'lib/easy_mail_preview.rb', line 4

def self.config
  @config ||= OpenStruct.new
end

.setup(&block) ⇒ Object



8
9
10
# File 'lib/easy_mail_preview.rb', line 8

def self.setup(&block)
  block.call(self.config)
end