Should have a .new when raising error
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Tue, 14 Apr 2009 12:00:26 +0000 (12:00 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Tue, 14 Apr 2009 12:00:26 +0000 (12:00 +0000)
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