Sha256: 0c06cf93c05d03a538d2a20a34d133d9585321349f32f3442ee91ae23886e06f
Contents?: true
Size: 486 Bytes
Versions: 15
Compression:
Stored size: 486 Bytes
Contents
module Jets::Router::Helpers::NamedRoutes module AddFullUrl # 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) def add_full_url(options) options = url_options.merge(options) ActionDispatch::Http::URL.url_for(options) end end end
Version data entries
15 entries across 15 versions & 1 rubygems