提交 87dd62ab 编写于 作者: A Aaron Patterson

stop using __send__ and just module eval in the extensions

上级 cd97d0b5
......@@ -124,9 +124,8 @@ def length
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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册