lib/collector/repository.rb in collector-0.0.19 vs lib/collector/repository.rb in collector-0.1.0

- old
+ new

@@ -28,10 +28,12 @@ save_without_updating_timestamps(model) end def save_without_updating_timestamps(model) attributes = serialize!(model) - collection.save(attributes) + id = collection.save(attributes) + model.instance_variable_set("@id", id) + model end def delete(model) collection.remove(_id: normalize_id(model.id)) end