method

split_constraints

Importance_0
v4.2.9 - Show latest stable - 0 notes - Class: ActionDispatch::Routing::Mapper::Mapping
split_constraints(path_params, constraints) 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 183
          def split_constraints(path_params, constraints)
            constraints.each_pair do |key, requirement|
              if path_params.include?(key) || key == :controller
                verify_regexp_requirement(requirement) if requirement.is_a?(Regexp)
                @requirements[key] = requirement
              else
                @conditions[key] = requirement
              end
            end
          end
Register or log in to add new notes.