Module: Jets::Router::Helpers::NamedRoutes::AddFullUrl

Included in:
Proxy
Defined in:
lib/jets/router/helpers/named_routes/add_full_url.rb

Instance Method Summary collapse

Instance Method Details

#add_full_url(options) ⇒ Object

Named add_full_url to avoid mental conflicts with Jets full_url_for Leverage Rails URL.url_for to avoid duplicating the logic Rails sets url_strategy to:

=> ActionDispatch::Routing::RouteSet::UNKNOWN
=> ActionDispatch::Http::URL.url_for(options)


8
9
10
11
# File 'lib/jets/router/helpers/named_routes/add_full_url.rb', line 8

def add_full_url(options)
  options = url_options.merge(options)
  ActionDispatch::Http::URL.url_for(options)
end