1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_controller/railties/url_helpers.rb

14 lines
292 B
Ruby
Raw Normal View History

module ActionController
module Railties
module UrlHelpers
def self.with(router)
Module.new do
define_method(:inherited) do |klass|
2010-02-26 17:31:29 -05:00
super(klass)
klass.send(:include, router.url_helpers)
end
end
end
end
end
end