Method: ActionDispatch::Routing::RouteSet::NamedRouteCollection::UrlHelper.create

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

.create(route, options, route_name) ⇒ Object



191
192
193
194
195
196
197
# File 'lib/action_dispatch/routing/route_set.rb', line 191

def self.create(route, options, route_name)
  if optimize_helper?(route)
    OptimizedUrlHelper.new(route, options, route_name)
  else
    new(route, options, route_name)
  end
end