Sha256: 3089bc060afbac5b7406ec4e774ef14fbf760d9835fb0c329f63d1d6a4f3e042
Contents?: true
Size: 781 Bytes
Versions: 4
Compression:
Stored size: 781 Bytes
Contents
require 'exceptionally_beautiful/markdown_renderer' require 'exceptionally_beautiful/engine' require 'exceptionally_beautiful/routes' module ExceptionallyBeautiful mattr_accessor :errors self.errors = [403, 404, 422, 500, 502] mattr_accessor :controller self.controller = 'exceptionally_beautiful/errors' mattr_accessor :action self.action = 'show' mattr_accessor :layout self.layout = 'exceptionally_beautiful/errors' mattr_accessor :translation_namespace self.translation_namespace = 'exceptionally_beautiful' def self.setup(&block) yield self end def self.translation_scope(status_code) [translation_namespace, status_code].join('.') end def self.log(message) Rails.logger.warn("[Exceptionally Beautiful] #{message}") end end
Version data entries
4 entries across 4 versions & 1 rubygems