Flowdock
method

matches_controller_and_action?

Importance_0
v2.1.0 - Show latest stable - 0 notes - Class: ActionController::Routing::Route
matches_controller_and_action?(controller, action) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_controller/routing/route.rb, line 211
      def matches_controller_and_action?(controller, action)
        unless defined? @matching_prepared
          @controller_requirement = requirement_for(:controller)
          @action_requirement = requirement_for(:action)
          @matching_prepared = true
        end

        (@controller_requirement.nil? || @controller_requirement === controller) &&
        (@action_requirement.nil? || @action_requirement === action)
      end
Register or log in to add new notes.