提交 5de61ccb 编写于 作者: M Matthew Draper

Merge pull request #16000 from sgrif/sg-silence-warning

Silence warning emitted in tests
......@@ -216,6 +216,7 @@ def _singularize(string, replacement='_')
module Naming
def self.extended(base) #:nodoc:
base.class_eval do
remove_possible_method(:model_name)
delegate :model_name, to: :class
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册