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.