Make ways_for_node work with the multipart primary key stuff.

This commit is contained in:
Tom Hughes 2008-01-28 08:54:45 +00:00
parent b8f87e0466
commit 59e2349b5a

View file

@ -132,7 +132,7 @@ class WayController < ApplicationController
end
def ways_for_node
wayids = WayNode.find(:all, :conditions => ['node_id = ?', params[:id]]).collect { |ws| ws.id }.uniq
wayids = WayNode.find(:all, :conditions => ['node_id = ?', params[:id]]).collect { |ws| ws.id[0] }.uniq
doc = OSM::API.new.get_xml_doc