X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bb84a78a090db5db95963653ccba89233415c508..832b96b75ac05177e6baad7b414066ccfd7cfa51:/app/models/way.rb?ds=sidebyside diff --git a/app/models/way.rb b/app/models/way.rb index 639f4e69a..cc9343e7c 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -234,8 +234,8 @@ class Way < ActiveRecord::Base def preconditions_ok?(old_nodes = []) return false if self.nds.empty? - if self.nds.length > APP_CONFIG['max_number_of_way_nodes'] - raise OSM::APITooManyWayNodesError.new(self.id, self.nds.length, APP_CONFIG['max_number_of_way_nodes']) + if self.nds.length > MAX_NUMBER_OF_WAY_NODES + raise OSM::APITooManyWayNodesError.new(self.id, self.nds.length, MAX_NUMBER_OF_WAY_NODES) end # check only the new nodes, for efficiency - old nodes having been checked last time and can't