X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/36660a3e45f707bbb86734b209b0331664618722..b7596f7fbc21a2c02b8ec12c971da670c9b7c4f8:/app/models/way.rb diff --git a/app/models/way.rb b/app/models/way.rb index 6f12f4304..637f41e28 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -200,7 +200,7 @@ class Way < ActiveRecord::Base def update_from(new_way, user) check_consistency(self, new_way, user) unless new_way.preconditions_ok? - raise OSM::APIPreconditionFailedError("Cannot update way #{self.id}: data is invalid.") + raise OSM::APIPreconditionFailedError.new("Cannot update way #{self.id}: data is invalid.") end self.changeset_id = new_way.changeset_id