]> git.openstreetmap.org Git - rails.git/commitdiff
Fixing indentation
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Mon, 2 Jun 2008 15:22:17 +0000 (15:22 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Mon, 2 Jun 2008 15:22:17 +0000 (15:22 +0000)
app/models/node.rb

index e610758aa12bbc5d7beb1759c2a7c410a8a70bfa..29b1d0b0a27f869545eb4336eaa1a6b9d925ca80 100644 (file)
@@ -57,7 +57,7 @@ class Node < GeoRecord
       doc = p.parse
 
       doc.find('//osm/node').each do |pt|
-       return Node.from_xml_node(pt, create)
+        return Node.from_xml_node(pt, create)
       end
     rescue
       return nil
@@ -75,7 +75,7 @@ class Node < GeoRecord
 
     unless create
       if pt['id'] != '0'
-       node.id = pt['id'].to_i
+        node.id = pt['id'].to_i
       end
     end
 
@@ -85,7 +85,7 @@ class Node < GeoRecord
       node.timestamp = Time.now
     else
       if pt['timestamp']
-       node.timestamp = Time.parse(pt['timestamp'])
+        node.timestamp = Time.parse(pt['timestamp'])
       end
     end