提交 16bf9036 编写于 作者: Y yui-knk

[ci skip] `automatic_inverse_of` returns `false` not `nil` (document fix)

上级 34ac8a1e
......@@ -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.
先完成此消息的编辑!
想要评论请 注册