X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/6339473cb77e4e0998b959a0835a8f42767f608d..b7b2b502cf2b119208e3c1f79e4a4e38cc0edcc5:/app/controllers/way_controller.rb?ds=inline diff --git a/app/controllers/way_controller.rb b/app/controllers/way_controller.rb index 25d535d79..5b0a632f7 100644 --- a/app/controllers/way_controller.rb +++ b/app/controllers/way_controller.rb @@ -87,7 +87,7 @@ class WayController < ApplicationController if way.visible nd_ids = way.nds + [-1] - nodes = Node.find(:all, :conditions => "visible = 1 AND id IN (#{nd_ids.join(',')})") + nodes = Node.find(:all, :conditions => ["visible = ? AND id IN (#{nd_ids.join(',')})", true]) # Render doc = OSM::API.new.get_xml_doc