method

regexp_chunk

rails latest stable - Class: ActionController::Routing::ControllerSegment

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

regexp_chunk()
public

No documentation available.

# File actionpack/lib/action_controller/routing/segments.rb, line 242
      def regexp_chunk
        possible_names = Routing.possible_controllers.collect { |name| Regexp.escape name }
        "(?i-:(#{(regexp || Regexp.union(*possible_names)).source}))"
      end