From 60ac0447183ede7ace326cb4651f8c7245ef5d0e Mon Sep 17 00:00:00 2001 From: "geemus (Wesley Beary)" Date: Tue, 9 Mar 2010 11:33:06 -0800 Subject: [PATCH] fix select/reject for collections --- lib/fog/collection.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/fog/collection.rb b/lib/fog/collection.rb index 638bbc552..e9801f13a 100644 --- a/lib/fog/collection.rb +++ b/lib/fog/collection.rb @@ -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