Should have a .new when raising error

This commit is contained in:
Shaun McDonald 2009-04-14 12:00:26 +00:00
parent ed87bd73f3
commit 5bc558e355

View file

@ -225,7 +225,7 @@ class Changeset < ActiveRecord::Base
def update_from(other, user) def update_from(other, user)
# ensure that only the user who opened the changeset may modify it. # ensure that only the user who opened the changeset may modify it.
unless user.id == self.user_id unless user.id == self.user_id
raise OSM::APIUserChangesetMismatchError raise OSM::APIUserChangesetMismatchError.new
end end
# can't change a closed changeset # can't change a closed changeset