validate :validate_position
has_many :old_nodes, :foreign_key => :id
+ has_many :way_nodes
belongs_to :user
def validate_position
el1['timestamp'] = self.timestamp.xmlschema
return el1
end
+
+ def tags_as_hash
+ hash = {}
+ Tags.split(self.tags) do |k,v|
+ hash[k] = v
+ end
+ hash
+ end
+
end