method

verify_regexp_requirement

Importance_0
v4.0.2 - Show latest stable - 0 notes - Class: ActionDispatch::Routing::Mapper::Mapping
verify_regexp_requirement(requirement) 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 135 def verify_regexp_requirement(requirement) if requirement.source =~ ANCHOR_CHARACTERS_REGEX raise ArgumentError, "Regexp anchor characters are not allowed in routing requirements: #{requirement.inspect}" end if requirement.multiline? raise ArgumentError, "Regexp multiline option is not allowed in routing requirements: #{requirement.inspect}" end end
Register or log in to add new notes.