method
matches_controller_and_action?
v2.3.8 -
Show latest stable
- Class:
ActionController::Routing::Route
matches_controller_and_action?(controller, action)public
No documentation available.
# File actionpack/lib/action_controller/routing/route.rb, line 101
def matches_controller_and_action?(controller, action)
prepare_matching!
(@controller_requirement.nil? || @controller_requirement === controller) &&
(@action_requirement.nil? || @action_requirement === action)
end