X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/191d7f371031cec6a1b83157d3e9f17dee787075..3e69a4512f2d1b39f48719882a0d112d042da73a:/app/models/concerns/consistency_validations.rb?ds=sidebyside diff --git a/app/models/concerns/consistency_validations.rb b/app/models/concerns/consistency_validations.rb index 8c89f61de..101fd4310 100644 --- a/app/models/concerns/consistency_validations.rb +++ b/app/models/concerns/consistency_validations.rb @@ -16,7 +16,7 @@ module ConsistencyValidations raise OSM::APIChangesetMissingError elsif new.changeset.user_id != user.id raise OSM::APIUserChangesetMismatchError - elsif !new.changeset.is_open? + elsif !new.changeset.open? raise OSM::APIChangesetAlreadyClosedError, new.changeset end end @@ -27,7 +27,7 @@ module ConsistencyValidations raise OSM::APIChangesetMissingError elsif new.changeset.user_id != user.id raise OSM::APIUserChangesetMismatchError - elsif !new.changeset.is_open? + elsif !new.changeset.open? raise OSM::APIChangesetAlreadyClosedError, new.changeset end end @@ -42,7 +42,7 @@ module ConsistencyValidations raise OSM::APIChangesetMissingError elsif user.id != changeset.user_id raise OSM::APIUserChangesetMismatchError - elsif !changeset.is_open? + elsif !changeset.open? raise OSM::APIChangesetAlreadyClosedError, changeset end end