mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04: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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user