]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/node.rb
make amf_controller use rails objects, and stuff, in the getway method. You need...
[rails.git] / app / models / node.rb
index 59aa4d36ffd01ef845896ca1199594253a6ef0fe..69ce5d6821618929062a58d338f9d29d54cf5a03 100644 (file)
@@ -110,4 +110,13 @@ class Node < GeoRecord
     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