load_target returns the target

This commit is contained in:
Jon Leighton
2011-01-24 20:58:43 +00:00
parent aa86420be2
commit db503c4142

View File

@@ -22,8 +22,7 @@ module ActiveRecord
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