mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
load_target returns the target
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user