Flowdock
method

constraints

Importance_0
Ruby on Rails latest stable (v4.2.1) - 0 notes - Class: ActionDispatch::Routing::Mapper::Mapping
constraints(options, path_params) private

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 331
          def constraints(options, path_params)
            constraints = {}
            required_defaults = []
            options.each_pair do |key, option|
              if Regexp === option
                constraints[key] = option
              else
                required_defaults << key unless path_params.include?(key)
              end
            end
            @conditions[:required_defaults] = required_defaults
            constraints
          end
Register or log in to add new notes.