Sha256: 001827906b15f77187096246ecc49ccf0bd07d2c01c2a32208015d974557852c
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
require 'exceptron/railtie' module Exceptron autoload :Dispatcher, 'exceptron/dispatcher' autoload :Exception, 'exceptron/exception' autoload :ExceptionsController, 'exceptron/exceptions_controller' autoload :Helpers, 'exceptron/helpers' autoload :LocalExceptionsController, 'exceptron/local_exceptions_controller' autoload :LocalHelpers, 'exceptron/local_helpers' autoload :Middleware, 'exceptron/middleware' autoload :VERSION, 'exceptron/version' mattr_reader :rescue_templates @@rescue_templates = Hash.new('diagnostics') @@rescue_templates.update( 'ActionView::MissingTemplate' => 'missing_template', 'ActionController::RoutingError' => 'routing_error', 'AbstractController::ActionNotFound' => 'unknown_action', 'ActionView::Template::Error' => 'template_error' ) def self.enable! @@enabled = true end def self.disable! @@enabled = false end def self.enabled? @@enabled end class << self attr_accessor :controller, :local_controller end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
exceptron-0.0.2 | lib/exceptron.rb |