]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/node.rb
Creating consistency check for creation of nodes, way and relations. Moving some...
[rails.git] / app / models / node.rb
index e7058a5adee06268b22ff9ffd562d25cc9138c56..d6a5143db1c3ec94263ef701177bc25201a28d89 100644 (file)
@@ -161,6 +161,13 @@ class Node < ActiveRecord::Base
     self.visible = true
     save_with_history!
   end
+  
+  def create_with_history(user)
+    check_create_consistency(self, user)
+    self.version = 0
+    self.visible = true
+    save_with_history!
+  end
 
   def to_xml
     doc = OSM::API.new.get_xml_doc