aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/url_for.rb
blob: 73feacb872431f7bfcfb9d505c86420c6aa34d53 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module ActionController
  module UrlFor
    extend ActiveSupport::Concern

    include AbstractController::UrlFor
    include ActionController::RackDelegation

  protected

    def _url_rewriter
      return ActionController::UrlRewriter unless request
      @_url_rewriter ||= ActionController::UrlRewriter.new(request, params)
    end
  end
end