class ActionDispatch::Routing::Mapper::Mapping
def split_constraints(path_params, constraints)
def split_constraints(path_params, constraints) constraints.partition do |key, requirement| path_params.include?(key) || key == :controller end end
def split_constraints(path_params, constraints) constraints.partition do |key, requirement| path_params.include?(key) || key == :controller end end