aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/railties/url_helpers.rb
blob: ad2a8d4ef376babe811b2d3e2be2641633dca8f1 (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)
            klass.send(:include, router.url_helpers)
          end
        end
      end
    end
  end
end