Skip to content
Browse files

Only remember that an association was loaded if it was found

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@435 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 8b82c50 commit 44ac6046c1e7b88e993293fa68ec015d52a7b26c @dhh dhh committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/associations/association_proxy.rb
View
2 activerecord/lib/active_record/associations/association_proxy.rb
@@ -58,7 +58,7 @@ def load_target
reset
end
end
- @loaded = true
+ @loaded = true if @target
@target
end

0 comments on commit 44ac604

Please sign in to comment.
Something went wrong with that request. Please try again.