Flowdock
method

matches?

Importance_0
v3.1.0 - Show latest stable - 0 notes - Class: ActionDispatch::Routing::Mapper::Constraints
matches?(env) 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_dispatch/routing/mapper.rb, line 26
        def matches?(env)
          req = @request.new(env)

          @constraints.each { |constraint|
            if constraint.respond_to?(:matches?) && !constraint.matches?(req)
              return false
            elsif constraint.respond_to?(:call) && !constraint.call(*constraint_args(constraint, req))
              return false
            end
          }

          return true
        end
Register or log in to add new notes.