1
0
Fork 0
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:
Aaron Patterson 2011-12-29 14:37:52 -08:00
parent cd97d0b5b7
commit 87dd62ab2e

View file

@ -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