Object
# File lib/action_dispatch/routing/mapper.rb, line 220 220: def self.normalize_name(name) 221: normalize_path(name)[1..1].gsub("/", "_") 222: end
Invokes Rack::Mount::Utils.normalize path and ensure that (:locale) becomes (/:locale) instead of /(:locale). Except for root cases, where the latter is the correct one.
# File lib/action_dispatch/routing/mapper.rb, line 214 214: def self.normalize_path(path) 215: path = Rack::Mount::Utils.normalize_path(path) 216: path.gsub!(%{/(\(+)/?}, '\1/') unless path =~ %{^/\(+[^/]+\)$} 217: path 218: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.