]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/way_controller.rb
Covering the case of an entry not being found. More diary entry tests.
[rails.git] / app / controllers / way_controller.rb
index 25d535d79e1e396bca2d4e98049efaf7da5bc07b..5b0a632f75091a37bef05e2e95e6272351027da3 100644 (file)
@@ -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