123456789_123456789_123456789_123456789_123456789_

Module: ActiveSupport::ActionableError

Relationships & Source Files
Namespace Children
Modules:
Exceptions:
Extension / Inclusion / Inheritance Descendants
Included In:
::ActiveRecord::NoDatabaseError, ActiveRecord::PendingMigrationError
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Concern
Defined in: activesupport/lib/active_support/actionable_error.rb

Overview

Actionable Errors

Actionable errors lets you define actions to resolve an error.

To make an error actionable, include the ActionableError module and invoke the action class macro to define the action. An action needs a name and a block to execute.

Class Method Summary

Concern - Extended

class_methods

Define class methods from given block.

included

Evaluate given block in context of base class, so that you can write class macros here.

prepended

Evaluate given block in context of base class, so that you can write class macros here.

DSL Calls

included

[ GitHub ]


16
17
18
# File 'activesupport/lib/active_support/actionable_error.rb', line 16

included do
  class_attribute :_actions, default: {}
end