aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/railties/url_helpers.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_controller/railties/url_helpers.rb')
-rw-r--r--actionpack/lib/action_controller/railties/url_helpers.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/railties/url_helpers.rb b/actionpack/lib/action_controller/railties/url_helpers.rb
new file mode 100644
index 0000000000..354d3fa898
--- /dev/null
+++ b/actionpack/lib/action_controller/railties/url_helpers.rb
@@ -0,0 +1,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 \ No newline at end of file