mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
fix select/reject for collections
This commit is contained in:
parent
5d4be6aa50
commit
60ac044718
1 changed files with 2 additions and 1 deletions
|
@ -14,7 +14,8 @@ module Fog
|
|||
class_eval <<-RUBY
|
||||
def #{method}(*args)
|
||||
lazy_load
|
||||
self.class.new(:connection => self.connection).load(self.map {|member| member.attributes})
|
||||
data = super
|
||||
self.class.new(:connection => self.connection).load(data.map {|member| member.attributes})
|
||||
end
|
||||
RUBY
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue