mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
14 lines
No EOL
290 B
Ruby
14 lines
No EOL
290 B
Ruby
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 |