instance method
controller_constraints
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.0.20Signature
controller_constraints()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/routing/deprecated_mapper.rb, line 12
def controller_constraints
@controller_constraints ||= begin
namespaces = controller_namespaces + in_memory_controller_namespaces
source = namespaces.map { |ns| "#{Regexp.escape(ns)}/#{CONTROLLER_REGEXP.source}" }
source << CONTROLLER_REGEXP.source
Regexp.compile(source.sort.reverse.join('|'))
end
end
Defined in actionpack/lib/action_dispatch/routing/deprecated_mapper.rb line 12
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Routing::RouteSet