Should have a .new when raising error
This commit is contained in:
parent
ed87bd73f3
commit
5bc558e355
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue