]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/way.rb
Exclude files in the vendor directory from erb-lint rubocop checks
[rails.git] / app / models / way.rb
index c95a1212296acc56746aea30c7959ef0a6678db5..6573b9805ecc449aac0b365e5a9a31798b86f2c2 100644 (file)
@@ -206,7 +206,7 @@ class Way < ActiveRecord::Base
 
   def preconditions_ok?(old_nodes = [])
     return false if nds.empty?
-    raise OSM::APITooManyWayNodesError.new(id, nds.length, MAX_NUMBER_OF_WAY_NODES) if nds.length > MAX_NUMBER_OF_WAY_NODES
+    raise OSM::APITooManyWayNodesError.new(id, nds.length, Settings.max_number_of_way_nodes) if nds.length > Settings.max_number_of_way_nodes
 
     # check only the new nodes, for efficiency - old nodes having been checked last time and can't
     # be deleted when they're in-use.