aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/helpers.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-09-11 09:14:22 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-09-11 09:14:22 +0000
commit2fc5cf78be465dbfb23e44eac3e26a3f62a9c2d9 (patch)
tree0340f13a212163f2e9f537f4eb851397f964d284 /actionpack/lib/action_controller/helpers.rb
parentb5629c31bebcb9d304cf01e8a7905aa7c54e11fb (diff)
downloadrails-2fc5cf78be465dbfb23e44eac3e26a3f62a9c2d9.tar.gz
rails-2fc5cf78be465dbfb23e44eac3e26a3f62a9c2d9.tar.bz2
rails-2fc5cf78be465dbfb23e44eac3e26a3f62a9c2d9.zip
Use send instead of module_eval #1873 [shugo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_controller/helpers.rb')
-rw-r--r--actionpack/lib/action_controller/helpers.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/helpers.rb b/actionpack/lib/action_controller/helpers.rb
index df381079eb..422e075a8e 100644
--- a/actionpack/lib/action_controller/helpers.rb
+++ b/actionpack/lib/action_controller/helpers.rb
@@ -45,7 +45,7 @@ module ActionController #:nodoc:
# See ActionView::Helpers (link:classes/ActionView/Helpers.html) for more about making your own helper modules
# available to the templates.
def add_template_helper(helper_module) #:nodoc:
- master_helper_module.module_eval "include #{helper_module}"
+ master_helper_module.send(:include, helper_module)
end
# Declare a helper: