aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/railties/url_helpers.rb
blob: 354d3fa898550e6cc8497c126b3829444383f177 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
module ActionController
  class Railtie
    module UrlHelpers
      def self.with(router)
        Module.new do
          define_method(:inherited) do |klass|
            super
            klass.send(:include, router.named_url_helpers)
          end
        end
      end
    end
  end
end