]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/old_node_controller.rb
Rename all ID columns that aren't unique
[rails.git] / app / controllers / old_node_controller.rb
index 514e5befe9198a15d1709ab020ffb9325144613e..4a1253034ac90f49464b6d99f922e2c6e9cce921 100644 (file)
@@ -18,7 +18,7 @@ class OldNodeController < ApplicationController
   end
   
   def version
-    if old_node = OldNode.where(:id => params[:id], :version => params[:version]).first
+    if old_node = OldNode.where(:node_id => params[:id], :version => params[:version]).first
       response.last_modified = old_node.timestamp
 
       doc = OSM::API.new.get_xml_doc