method
regexp_chunk
v2.1.0 -
Show latest stable
- Class:
ActionController::Routing::ControllerSegment
regexp_chunk()public
No documentation available.
# File actionpack/lib/action_controller/routing/segments.rb, line 221
def regexp_chunk
possible_names = Routing.possible_controllers.collect { |name| Regexp.escape name }
"(?i-:(#{(regexp || Regexp.union(*possible_names)).source}))"
end