From b7596f7fbc21a2c02b8ec12c971da670c9b7c4f8 Mon Sep 17 00:00:00 2001 From: Shaun McDonald Date: Sun, 26 Apr 2009 20:56:58 +0000 Subject: [PATCH 1/1] Fix typo of missing .new for some of the errors. Tests are useful. --- app/models/way.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.45.1