mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Use send instead of module_eval #1873 [shugo]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2197 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
b5629c31be
commit
2fc5cf78be
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue