]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way.rb
Refactor update element consistency check
[rails.git] / app / models / way.rb
index b11c225ddb1cfd0a6fb604174d4e39354eab0276..2a989f9f3b6d6068647d41c7c2fa47aa5a01a52b 100644 (file)
@@ -155,7 +155,7 @@ class Way < ApplicationRecord
   end
 
   def create_with_history(user)
-    check_create_consistency(self, user)
+    check_create_element_consistency(self, user)
     raise OSM::APIPreconditionFailedError, "Cannot create way: data is invalid." unless preconditions_ok?
 
     self.version = 0