app/services/katello/pulp/file_unit.rb in katello-3.15.3.1 vs app/services/katello/pulp/file_unit.rb in katello-3.16.0.rc1
- old
+ new
@@ -12,10 +12,10 @@
def update_model(model)
custom_json = {}
custom_json['checksum'] = backend_data['checksum']
custom_json['path'] = backend_data['name']
custom_json['name'] = File.basename(backend_data['name'])
- model.update_attributes!(custom_json)
+ model.update!(custom_json)
end
end
end
end