提交 a7a2bc0f 编写于 作者: प्रथमेश Sonpatki

Merge pull request #22986 from yui-knk/fix_automatic_inverse_of_comment

[ci skip] `automatic_inverse_of` returns `false` not `nil` (document …
......@@ -545,7 +545,7 @@ def inverse_name
end
end
# returns either nil or the inverse association name that it finds.
# returns either false or the inverse association name that it finds.
def automatic_inverse_of
if can_find_inverse_of_automatically?(self)
inverse_name = ActiveSupport::Inflector.underscore(options[:as] || active_record.name.demodulize).to_sym
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册