Module: ActiveError
- Defined in:
- lib/active_error/exception_mock/default.rb,
lib/active_error.rb,
lib/active_error/captor.rb,
lib/active_error/engine.rb,
lib/active_error/version.rb,
lib/active_error/renderer.rb,
app/models/active_error/fault.rb,
lib/active_error/exception_mock.rb,
app/models/active_error/instance.rb,
lib/active_error/error_subscriber.rb,
app/models/active_error/application_record.rb,
app/controllers/active_error/faults_controller.rb,
lib/active_error/exception_mock/template_error.rb,
app/controllers/active_error/application_controller.rb,
app/controllers/active_error/faults/instances_controller.rb
Overview
require “active_support/dependencies”
Defined Under Namespace
Modules: ExceptionMock, Faults Classes: ActiveJobRequest, ApplicationController, ApplicationRecord, BacktraceLocation, Captor, Engine, ErrorSubscriber, Fault, FaultsController, InstallGenerator, Instance, Renderer
Constant Summary collapse
- IGNORE_DEFAULT =
[ "AbstractController::ActionNotFound", "ActionController::BadRequest", "ActionController::InvalidAuthenticityToken", "ActionController::InvalidCrossOriginRequest", "ActionController::MethodNotAllowed", "ActionController::NotImplemented", "ActionController::ParameterMissing", "ActionController::RoutingError", "ActionController::UnknownAction", "ActionController::UnknownFormat", "ActionDispatch::Http::MimeNegotiation::InvalidType", "ActionController::UnknownHttpMethod", "ActionDispatch::Http::Parameters::ParseError", "ActiveRecord::RecordNotFound" ].freeze
- VERSION =
"2.1.1"
Class Method Summary collapse
Class Method Details
.enabled? ⇒ Boolean
37 38 39 40 41 42 43 |
# File 'lib/active_error.rb', line 37 def enabled? if enabled.nil? !Rails.env.local? else enabled.present? end end |
.ignored_classes ⇒ Object
33 34 35 |
# File 'lib/active_error.rb', line 33 def ignored_classes ignored.to_a + IGNORE_DEFAULT end |