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

Version Path
jets-5.0.13 lib/jets/router/helpers/named_routes/add_full_url.rb
jets-5.0.12 lib/jets/router/helpers/named_routes/add_full_url.rb
jets-5.0.11 lib/jets/router/helpers/named_routes/add_full_url.rb
jets-5.0.10 lib/jets/router/helpers/named_routes/add_full_url.rb
jets-5.0.9 lib/jets/router/helpers/named_routes/add_full_url.rb
jets-5.0.8 lib/jets/router/helpers/named_routes/add_full_url.rb
jets-5.0.7 lib/jets/router/helpers/named_routes/add_full_url.rb
jets-5.0.6 lib/jets/router/helpers/named_routes/add_full_url.rb
jets-5.0.5 lib/jets/router/helpers/named_routes/add_full_url.rb
jets-5.0.4 lib/jets/router/helpers/named_routes/add_full_url.rb
jets-5.0.3 lib/jets/router/helpers/named_routes/add_full_url.rb
jets-5.0.2 lib/jets/router/helpers/named_routes/add_full_url.rb
jets-5.0.1 lib/jets/router/helpers/named_routes/add_full_url.rb
jets-5.0.0 lib/jets/router/helpers/named_routes/add_full_url.rb
jets-5.0.0.beta1 lib/jets/router/helpers/named_routes/add_full_url.rb