Flowdock
method

requirement_for

Importance_0
v2.1.0 - Show latest stable - 0 notes - Class: ActionController::Routing::Route
requirement_for(key) protected

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 230
      def requirement_for(key)
        return requirements[key] if requirements.key? key
        segments.each do |segment|
          return segment.regexp if segment.respond_to?(:key) && segment.key == key
        end
        nil
      end
Register or log in to add new notes.