mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
stop using __send__ and just module eval in the extensions
This commit is contained in:
parent
cd97d0b5b7
commit
87dd62ab2e
1 changed files with 2 additions and 3 deletions
|
@ -124,9 +124,8 @@ module ActionDispatch
|
|||
end
|
||||
|
||||
def install(destinations = [ActionController::Base, ActionView::Base])
|
||||
destinations.each do |dest|
|
||||
dest.__send__(:include, @module)
|
||||
end
|
||||
helper = @module
|
||||
destinations.each { |d| d.module_eval { include helper } }
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in a new issue