lib/libis/services/rosetta/collection_handler.rb in libis-services-0.1.1 vs lib/libis/services/rosetta/collection_handler.rb in libis-services-0.1.2
- old
+ new
@@ -32,10 +32,10 @@
def delete(id)
call :delete_collection, pds_handle: @pds_handle, collection_id: id
end
def update(collection_info)
- collection_info = collection_info.attributes if collection_info.is_a? CollectionInfo
+ collection_info = collection_info.to_hash.cleanup if collection_info.is_a? CollectionInfo
call :update_collection, pds_handle: @pds_handle, collection: collection_info
end
end
\ No newline at end of file