From: Shaun McDonald Date: Sun, 26 Apr 2009 20:56:58 +0000 (+0000) Subject: Fix typo of missing .new for some of the errors. Tests are useful. X-Git-Tag: live~7481 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/b7596f7fbc21a2c02b8ec12c971da670c9b7c4f8 Fix typo of missing .new for some of the errors. Tests are useful. --- 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