Rename unique_nodes to unshared_node_ids to make it's purpose a bit clearer
[rails.git] / app / controllers / amf_controller.rb
index 4ec4e660e1bd08d79b38a2f94e349bcd0f4a72c0..28e2e4b2b635c15087e5999c42b777e8a9b8409d 100644 (file)
@@ -295,7 +295,7 @@ class AmfController < ApplicationController
          uniques=[]
        else
          way=Way.find(originalway)
-         uniques=way.unique_nodes
+         uniques=way.unshared_node_ids
        end
 
        # -- Compare nodes and save changes to any that have changed
@@ -415,7 +415,7 @@ class AmfController < ApplicationController
        #                two nodes from the same relation
        user = User.find(uid)
        way = Way.find(way_id)
-       way.unique_nodes.each do |n|
+       way.unshared_node_ids.each do |n|
          deleteitemrelations(n,'node')
        end