]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/node_controller.rb
Small fixes to unit tests where user_id has become changeset_id.
[rails.git] / app / controllers / node_controller.rb
index bfd1031f04a671c285b3bed33163004eca7b3f36..8e8c8446d1c66ef420a50ac10f028c53da4a17f1 100644 (file)
@@ -36,7 +36,7 @@ class NodeController < ApplicationController
   def read
     begin
       node = Node.find(params[:id])
-      if node.visible
+      if node.visible?
         response.headers['Last-Modified'] = node.timestamp.rfc822
         render :text => node.to_xml.to_s, :content_type => "text/xml"
        else