lib/gummi/repository_layer/repository.rb in gummi-1.0.2 vs lib/gummi/repository_layer/repository.rb in gummi-1.0.3
- old
+ new
@@ -43,11 +43,11 @@
def update(id, attributes)
db_class.update id, attributes
end
def set_id_and_version(entity, db_instance)
- entity.id = db_instance.id
- entity.version = db_instance.version
+ entity.id = db_instance['id']
+ entity.version = db_instance['version']
end
end
end
end