lib/knj/objects.rb in knjrbfw-0.0.96 vs lib/knj/objects.rb in knjrbfw-0.0.97

- old
+ new

@@ -893,10 +893,10 @@ #Deletes all objects with the given IDs 500 at a time to prevent memory exhaustion or timeout. #===Examples # ob.delete_ids(:class => :Person, :ids => [1, 3, 5, 6, 7, 8, 9]) def delete_ids(args) while !args[:ids].empty? and ids = args[:ids].shift(500) - objs = self.list(:Person, "id" => ids) + objs = self.list(args[:class], "id" => ids) self.deletes(objs) end return nil end \ No newline at end of file