method

matches_controller_and_action?

rails latest stable - Class: ActionController::Routing::Route

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

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