]> git.openstreetmap.org Git - rails.git/commitdiff
Fix another mis-referenced error message id!
authorThomas Wood <grand.edgemaster@gmail.com>
Sat, 2 May 2009 18:28:39 +0000 (18:28 +0000)
committerThomas Wood <grand.edgemaster@gmail.com>
Sat, 2 May 2009 18:28:39 +0000 (18:28 +0000)
app/models/node.rb

index a4ba76e91e1cc2d40c4c436421c8a478f91c72a0..e37a10250d06e07ea4310bfa7c95d5a28997ccbc 100644 (file)
@@ -133,7 +133,7 @@ class Node < ActiveRecord::Base
       check_consistency(self, new_node, user)
       way = WayNode.find(:first, :joins => :way, 
                          :conditions => [ "current_ways.visible = ? AND current_way_nodes.node_id = ?", true, self.id ])
-      raise OSM::APIPreconditionFailedError.new("Node #{self.id} is still used by way #{way.id}.") unless way.nil?
+      raise OSM::APIPreconditionFailedError.new("Node #{self.id} is still used by way #{way.way.id}.") unless way.nil?
       
       rel = RelationMember.find(:first, :joins => :relation, 
                                 :conditions => [ "visible = ? AND member_type='Node' and member_id=? ", true, self.id])