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 267 def constraints @constraints ||= {}.tap do |constraints| constraints.merge!(scope[:constraints]) if scope[:constraints] options.except(*IGNORE_OPTIONS).each do |key, option| constraints[key] = option if Regexp === option end constraints.merge!(options[:constraints]) if options[:constraints].is_a?(Hash) end end
Register or log in to add new notes.