diff options
author | Piotr Sarnacki <drogus@gmail.com> | 2011-04-25 15:02:41 +0200 |
---|---|---|
committer | Piotr Sarnacki <drogus@gmail.com> | 2011-04-25 15:02:41 +0200 |
commit | d4bea35f1ae458246a9e3bb1c914c5d05b8e9cdf (patch) | |
tree | 8fb6c94cd42b25bd38421a6a2d23072bbcfa20f5 /railties | |
parent | 820c0feda33495cfe68add8c3f25adc515ab3e04 (diff) | |
download | rails-d4bea35f1ae458246a9e3bb1c914c5d05b8e9cdf.tar.gz rails-d4bea35f1ae458246a9e3bb1c914c5d05b8e9cdf.tar.bz2 rails-d4bea35f1ae458246a9e3bb1c914c5d05b8e9cdf.zip |
Make ActionController::Base.modules_for_helpers and ActionController::Base.all_helpers_from_path public methods
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/engine.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index fbd474fa1b..6c1064c609 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -415,8 +415,8 @@ module Rails paths["app/helpers"].existent end - all = ActionController::Base.send(:all_helpers_from_path, helpers_paths) - ActionController::Base.send(:modules_for_helpers, all).each do |mod| + all = ActionController::Base.all_helpers_from_path(helpers_paths) + ActionController::Base.modules_for_helpers(all).each do |mod| helpers.send(:include, mod) end helpers |