X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/c64ebb9139dd5a25b82b6e8170d3b554cf45d516..9acc6d32883435ab9734cd4970b292583075a75d:/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