提交 05320e37 编写于 作者: A Aaron Patterson

use unless instead of if !

上级 5f608fc7
......@@ -372,7 +372,7 @@ def construct_find_options!(options)
def load_target
if @owner.persisted? || foreign_key_present
begin
if !loaded?
unless loaded?
if @target.is_a?(Array) && @target.any?
@target = find_target.map do |f|
i = @target.index(f)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册