123456789_123456789_123456789_123456789_123456789_

Module: ActiveSupport::ActionableError

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

Overview

Actionable errors let’s 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 ]


14
15
16
# File 'activesupport/lib/active_support/actionable_error.rb', line 14

included do
  class_attribute :_actions, default: {}
end