module ActiveSupport::ActionableError

def self.actions(error) # :nodoc:

:nodoc:
def self.actions(error) # :nodoc:
  case error
  when ActionableError, -> it { Class === it && it < ActionableError }
    error._actions
  else
    {}
  end
end