Permalink
Browse files

load_target returns the target

  • Loading branch information...
1 parent aa86420 commit db503c4142d85cc1d2d511873f8eb7e7250bbedb @jonleighton jonleighton committed Jan 24, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 activerecord/lib/active_record/associations/association_collection.rb
@@ -22,8 +22,7 @@ class AssociationCollection < AssociationProxy #:nodoc:
def select(select = nil)
if block_given?
- load_target
- @target.select.each { |e| yield e }
+ load_target.select.each { |e| yield e }
else
scoped.select(select)
end

0 comments on commit db503c4

Please sign in to comment.