Module: ExceptionallyBeautiful

Defined in:
lib/exceptionally_beautiful.rb,
lib/exceptionally_beautiful/engine.rb,
lib/exceptionally_beautiful/version.rb,
app/models/exceptionally_beautiful/error.rb,
lib/generators/exceptionally_beautiful/install_generator.rb,
app/controllers/concerns/exceptionally_beautiful/error_handler.rb,
app/controllers/exceptionally_beautiful/application_controller.rb

Defined Under Namespace

Modules: ErrorHandler, Generators Classes: ApplicationController, Engine, Error, ErrorsController

Constant Summary collapse

VERSION =
'0.0.1'

Class Method Summary collapse

Class Method Details

.log(message) ⇒ Object



25
26
27
# File 'lib/exceptionally_beautiful.rb', line 25

def self.log(message)
  Rails.logger.warn("[Exceptionally Beautiful] #{message}")
end

.setup {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



17
18
19
# File 'lib/exceptionally_beautiful.rb', line 17

def self.setup(&block)
  yield self
end

.translation_scope(error_code) ⇒ Object



21
22
23
# File 'lib/exceptionally_beautiful.rb', line 21

def self.translation_scope(error_code)
  [translation_namespace, error_code].join('.')
end