include/model_handler.rb in baza-0.0.9 vs include/model_handler.rb in baza-0.0.10

- old
+ new

@@ -406,10 +406,10 @@ return false end #Searches for an object with the given data. If not found it creates it. Returns the found or created object in the end. def get_or_add(classname, data, args = nil) - obj = self.get_by(classname, data) + obj = self.get_by(classname, data.clone) obj = self.add(classname, data) if !obj return obj end def get_try(obj, col_name, obj_name = nil) \ No newline at end of file