module ActiveSupport::ActionableError

def self.dispatch(error, name) # :nodoc:

:nodoc:
def self.dispatch(error, name) # :nodoc:
  actions(error).fetch(name).call
rescue KeyError
  raise NonActionable, "Cannot find action \"#{name}\""
end