method

error

Importance_1
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: Rails
error() public

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)
Show source
Register or log in to add new notes.