diff options
author | José Valim <jose.valim@gmail.com> | 2012-03-15 08:48:38 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-03-15 08:48:38 +0100 |
commit | fbc9d0f44f090a9873834f4966760c3e80682559 (patch) | |
tree | 70a3a93f8af3653b0ed8557b9c385fc3f105bf18 /actionpack/lib/action_controller/railties/paths.rb | |
parent | 5b94e73d1a604c59ecd1ebb9441d60ea864fa1b5 (diff) | |
download | rails-fbc9d0f44f090a9873834f4966760c3e80682559.tar.gz rails-fbc9d0f44f090a9873834f4966760c3e80682559.tar.bz2 rails-fbc9d0f44f090a9873834f4966760c3e80682559.zip |
Simplify helpers handling. Ensure Metal can run AC hooks.
Diffstat (limited to 'actionpack/lib/action_controller/railties/paths.rb')
-rw-r--r-- | actionpack/lib/action_controller/railties/paths.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/actionpack/lib/action_controller/railties/paths.rb b/actionpack/lib/action_controller/railties/paths.rb deleted file mode 100644 index 7e79b036ed..0000000000 --- a/actionpack/lib/action_controller/railties/paths.rb +++ /dev/null @@ -1,24 +0,0 @@ -module ActionController - module Railties - module Paths - def self.with(app) - Module.new do - define_method(:inherited) do |klass| - super(klass) - - if namespace = klass.parents.detect { |m| m.respond_to?(:railtie_helpers_paths) } - paths = namespace.railtie_helpers_paths - else - paths = app.helpers_paths - end - klass.helpers_path = paths - - if klass.superclass == ActionController::Base && ActionController::Base.include_all_helpers - klass.helper :all - end - end - end - end - end - end -end |