class method
self.error
Ruby on Rails 7.2.3
Since v7.0.10Signature
self.error()
Returns the ActiveSupport::ErrorReporter of the current Rails project, otherwise it returns nil if there is no project.
Rails.error.handle(IOError) do # ... end Rails.error.report(error)
Source
# File railties/lib/rails.rb, line 93
def error
ActiveSupport.error_reporter
end
Defined in railties/lib/rails.rb line 93
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails