提交 2812af72 编写于 作者: A Akira Matsuda

Suppress :warning:s

上级 60b8ab71
......@@ -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, -> { })
silence_warnings { Topic.scope(reserved_method, -> { }) }
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册