X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c79da4746a7fcea96da37aa2021c309100762d21..216e2493edde7d9601fdb508a8835b93ec9d3c25:/app/models/relation.rb?ds=inline diff --git a/app/models/relation.rb b/app/models/relation.rb index f09647320..69e2acfd1 100644 --- a/app/models/relation.rb +++ b/app/models/relation.rb @@ -234,7 +234,7 @@ class Relation < ApplicationRecord element = model.lock("for share").find_by(:id => m[1]) # and check that it is OK to use. - raise OSM::APIPreconditionFailedError, "Relation with id #{id} cannot be saved due to #{m[0]} with id #{m[1]}" unless element&.visible? && element&.preconditions_ok? + raise OSM::APIPreconditionFailedError, "Relation with id #{id} cannot be saved due to #{m[0]} with id #{m[1]}" unless element&.visible? && element.preconditions_ok? hash[m[1]] = true end