lib/fog/collection.rb in fog-0.0.47 vs lib/fog/collection.rb in fog-0.0.48

- old
+ new

@@ -99,12 +99,18 @@ end data << "#{Thread.current[:formatador].indentation}>" data end - def load(array) + def load(objects) + if @loaded + clear + end @loaded = true - self.clear.concat(array) + for object in objects + self << new(object) + end + self end def model self.class.instance_variable_get('@model') end