Sha256: 89a7975418b7dc5609afb009c6b2a2caad0c25155ba3291fcdd0c0991395a582
Contents?: true
Size: 914 Bytes
Versions: 8
Compression:
Stored size: 914 Bytes
Contents
########################################### #Core Dependencies require "action_dispatch" #Gem Files versions = %w(version parser config) for version in versions do require "exception_handler/#{version}" end ########################################### module ExceptionHandler #Exception Handler class Exceptions < Rails::Engine initializer "exception_handler.configure_rails_initialization" do |app| app.config.middleware.use "ExceptionHandler::Message" unless ExceptionHandler.config.db == false #Parser app.config.exceptions_app = ->(env) { ExceptionHandler::ExceptionController.action(:show).call(env) } #Pages end end #################### # Config # #################### #Ref http://robots.thoughtbot.com/mygem-configure-block mattr_accessor :config, :table #Vars @@config ||= Config.new #Block (for initializer) def self.setup yield(config) if block_given? end end
Version data entries
8 entries across 8 versions & 1 rubygems