Skip to content

Commit

Permalink
load_target returns the target
Browse files Browse the repository at this point in the history
  • Loading branch information
jonleighton committed Jan 30, 2011
1 parent aa86420 commit db503c4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit db503c4

Please sign in to comment.