method
dispatch
v8.1.1 -
Show latest stable
- Class:
ActiveSupport::ActionableError
dispatch(error, name)public
No documentation available.
# File activesupport/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