diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2010-08-02 17:38:44 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2010-09-03 22:59:11 +0200 |
commit | 4131a2d804c54960ac70984e7453069fe8688365 (patch) | |
tree | a11611f781d5c0688feb641f5589f100538bf12b /actionpack/lib/action_controller/railties | |
parent | 32baa278925c53f8885e94ea1f3d7c228d42c75f (diff) | |
download | rails-4131a2d804c54960ac70984e7453069fe8688365.tar.gz rails-4131a2d804c54960ac70984e7453069fe8688365.tar.bz2 rails-4131a2d804c54960ac70984e7453069fe8688365.zip |
Move ActionController::Railties::RoutesHelpers and ActionMailer::Railties::RoutesHelper to AbstractController::Railties::RoutesHelpers
Diffstat (limited to 'actionpack/lib/action_controller/railties')
-rw-r--r-- | actionpack/lib/action_controller/railties/routes_helpers.rb | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/actionpack/lib/action_controller/railties/routes_helpers.rb b/actionpack/lib/action_controller/railties/routes_helpers.rb deleted file mode 100644 index a23f703f0b..0000000000 --- a/actionpack/lib/action_controller/railties/routes_helpers.rb +++ /dev/null @@ -1,17 +0,0 @@ -module ActionController - module Railties - module RoutesHelpers - def self.with(routes) - Module.new do - define_method(:inherited) do |klass| - super(klass) - if namespace = klass.parents.detect {|m| m.respond_to?(:_railtie) } - routes = namespace._railtie.routes - end - klass.send(:include, routes.url_helpers) - end - end - end - end - end -end |