module ActionDispatch::Routing::DirectRoutes::RouteSet::UrlHelpers

Public Class Methods

new(routes) click to toggle source
# File lib/action_dispatch/routing/direct_routes/route_set/url_helpers.rb, line 42
def initialize(routes)
  @_routes = routes
end

Public Instance Methods

_routes() click to toggle source
# File lib/action_dispatch/routing/direct_routes/route_set/url_helpers.rb, line 24
def _routes; proxy._routes; end
full_url_for(options) click to toggle source
# File lib/action_dispatch/routing/direct_routes/route_set/url_helpers.rb, line 12
def full_url_for(options)
  proxy.full_url_for(options)
end
optimize_routes_generation?() click to toggle source
# File lib/action_dispatch/routing/direct_routes/route_set/url_helpers.rb, line 20
def optimize_routes_generation?
  proxy.optimize_routes_generation?
end
route_for(name, *args) click to toggle source
# File lib/action_dispatch/routing/direct_routes/route_set/url_helpers.rb, line 16
def route_for(name, *args)
  proxy.route_for(name, *args)
end
url_for(options) click to toggle source
# File lib/action_dispatch/routing/direct_routes/route_set/url_helpers.rb, line 8
def url_for(options)
  proxy.url_for(options)
end
url_options() click to toggle source
# File lib/action_dispatch/routing/direct_routes/route_set/url_helpers.rb, line 25
def url_options; {}; end

Private Instance Methods

proxy() click to toggle source
# File lib/action_dispatch/routing/direct_routes/route_set/url_helpers.rb, line 28
def proxy
  @proxy ||= proxy_class.new(@_routes)
end
proxy_class() click to toggle source
# File lib/action_dispatch/routing/direct_routes/route_set/url_helpers.rb, line 32
def proxy_class
  routes = @_routes

  Class.new do
    include ActionDispatch::Routing::UrlFor
    include routes.named_routes.path_helpers_module
    include routes.named_routes.url_helpers_module

    attr_reader :_routes

    def initialize(routes)
      @_routes = routes
    end

    def optimize_routes_generation?
      @_routes.optimize_routes_generation?
    end
  end
end