Make ways_for_node work with the multipart primary key stuff.
This commit is contained in:
parent
b8f87e0466
commit
59e2349b5a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue