Method: Rails.error

Defined in:
railties/lib/rails.rb

.errorObject

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)


93
94
95
# File 'railties/lib/rails.rb', line 93

def error
  ActiveSupport.error_reporter
end