Method: ActiveSupport::ActionableError.dispatch

Defined in:
lib/active_support/actionable_error.rb

.dispatch(error, name) ⇒ Object

:nodoc:



29
30
31
32
33
# File 'lib/active_support/actionable_error.rb', line 29

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