Skip to content

Commit

Permalink
use unless instead of if !
Browse files Browse the repository at this point in the history
  • Loading branch information
tenderlove committed Nov 16, 2010
1 parent 5f608fc commit 05320e3
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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)
Expand Down

0 comments on commit 05320e3

Please sign in to comment.