提交 60b8ab71 编写于 作者: A Akira Matsuda

scope needs the second argument

上级 dc925119
......@@ -455,7 +455,7 @@ def private_method; end
[:public_method, :protected_method, :private_method].each do |reserved_method|
assert Topic.respond_to?(reserved_method, true)
ActiveRecord::Base.logger.expects(:warn)
Topic.scope(reserved_method)
Topic.scope(reserved_method, -> { })
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册