]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/changeset.rb
Should have a .new when raising error
[rails.git] / app / models / changeset.rb
index 53078b2e892b3fe0a670cf2b2ddfc67d1dd6777f..fa2d556b10c00195a20d5f8670224a22475ebb7b 100644 (file)
@@ -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