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,
lib/exceptionally_beautiful/routing_constraint.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, RoutingConstraint
Constant Summary
collapse
- VERSION =
'0.1.3'
Class Method Summary
collapse
Class Method Details
.log(message) ⇒ Object
29
30
31
|
# File 'lib/exceptionally_beautiful.rb', line 29
def self.log(message)
Rails.logger.warn("[Exceptionally Beautiful] #{message}")
end
|
.setup {|_self| ... } ⇒ Object
21
22
23
|
# File 'lib/exceptionally_beautiful.rb', line 21
def self.setup(&block)
yield self
end
|
.translation_scope(status_code) ⇒ Object
25
26
27
|
# File 'lib/exceptionally_beautiful.rb', line 25
def self.translation_scope(status_code)
[translation_namespace, status_code].join('.')
end
|