Added tests for ways_for_node. Altered behaviour to not return deleted ways. Fixed ways fixture where most recent history != current.

This commit is contained in:
Matt Amos 2008-10-21 10:52:52 +00:00
parent a8eb3a6ada
commit 6339473cb7
7 changed files with 70 additions and 43 deletions

View 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|