X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3e9b6845d34f9cd80f9eb1099f76f7801bfae76f..33d32bf7377150a85aa8027bfda3fc70b76f119b:/app/models/node.rb diff --git a/app/models/node.rb b/app/models/node.rb index 2c25bbd14..d85b22c9b 100644 --- a/app/models/node.rb +++ b/app/models/node.rb @@ -137,7 +137,7 @@ class Node < ActiveRecord::Base rel = RelationMember.find(:first, :joins => "INNER JOIN current_relations ON current_relations.id=current_relation_members.id", :conditions => [ "visible = ? AND member_type='Node' and member_id=? ", true, self.id]) - raise OSM::APIPreconditionFailedError.new("Node #{self.id} is still used by relation #{rel.id}.") unless rel.nil? + raise OSM::APIPreconditionFailedError.new("Node #{self.id} is still used by relation #{rel.relation.id}.") unless rel.nil? self.changeset_id = new_node.changeset_id self.visible = false