1
0
Fork 0
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:
geemus (Wesley Beary) 2010-03-09 11:33:06 -08:00
parent 5d4be6aa50
commit 60ac044718

View file

@ -14,7 +14,8 @@ module Fog
class_eval <<-RUBY class_eval <<-RUBY
def #{method}(*args) def #{method}(*args)
lazy_load 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 end
RUBY RUBY
end end