Method: ActionDispatch::Routing::RouteSet#url_helpers

Defined in:
actionpack/lib/action_dispatch/routing/route_set.rb

#url_helpers(supports_path = true) ⇒ Object

[View source]

500
501
502
503
504
505
506
# File 'actionpack/lib/action_dispatch/routing/route_set.rb', line 500

def url_helpers(supports_path = true)
  if supports_path
    @url_helpers_with_paths ||= generate_url_helpers(true)
  else
    @url_helpers_without_paths ||= generate_url_helpers(false)
  end
end