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/exceptionally_beautiful/html_renderer.rb,
lib/exceptionally_beautiful/markdown_renderer.rb,
app/helpers/exceptionally_beautiful/render_helper.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, RenderHelper Classes: ApplicationController, Engine, Error, ErrorsController, HtmlRenderer, MarkdownRenderer

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details

.log(message) ⇒ Object



27
28
29
# File 'lib/exceptionally_beautiful.rb', line 27

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

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

Yields:

  • (_self)

Yield Parameters:



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

def self.setup(&block)
  yield self
end

.translation_scope(status_code) ⇒ Object



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

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