Object
# File lib/action_dispatch/routing/mapper.rb, line 245 245: def self.normalize_name(name) 246: normalize_path(name)[1..1].gsub("/", "_") 247: 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 239 239: def self.normalize_path(path) 240: path = Journey::Router::Utils.normalize_path(path) 241: path.gsub!(%{/(\(+)/?}, '\1/') unless path =~ %{^/\(+[^)]+\)$} 242: path 243: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.