]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way.rb
Added tests for ways_for_node. Altered behaviour to not return deleted ways. Fixed...
[rails.git] / app / models / way.rb
index 591dee9a22c07a000cc4a413b709a2c4f13ad60a..1304d8a184da14254064c732ae252b4db6978756 100644 (file)
@@ -51,6 +51,8 @@ class Way < ActiveRecord::Base
       if pt['timestamp']
         way.timestamp = Time.parse(pt['timestamp'])
       end
+      # if visible isn't present then it defaults to true
+      way.visible = (pt['visible'] or true)
     end
 
     pt.find('tag').each do |tag|