X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/bb84a78a090db5db95963653ccba89233415c508..a12b0878bc338cd5ec3c315c14148b1ea07b362a:/app/models/way.rb 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