X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c64ebb9139dd5a25b82b6e8170d3b554cf45d516..1721aa1c0dd7e5d3f1f87054cf63040e5d914671:/app/models/changeset.rb?ds=sidebyside diff --git a/app/models/changeset.rb b/app/models/changeset.rb index 53078b2e8..fa2d556b1 100644 --- a/app/models/changeset.rb +++ b/app/models/changeset.rb @@ -225,7 +225,7 @@ class Changeset < ActiveRecord::Base def update_from(other, user) # ensure that only the user who opened the changeset may modify it. unless user.id == self.user_id - raise OSM::APIUserChangesetMismatchError + raise OSM::APIUserChangesetMismatchError.new end # can't change a closed changeset