X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9ff7ea8d71dedb5b29f6ff0b007568b3e699b196..9b4271ed8c0577d23c6d77c4be0ed8a8082dc86c:/app/models/way.rb diff --git a/app/models/way.rb b/app/models/way.rb index cbbe6ada4..97f44c117 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -224,7 +224,7 @@ class Way < ActiveRecord::Base def preconditions_ok? return false if self.nds.empty? if self.nds.length > APP_CONFIG['max_number_of_way_nodes'] - raise OSM::APITooManyWayNodesError.new(self.nds.count, APP_CONFIG['max_number_of_way_nodes']) + raise OSM::APITooManyWayNodesError.new(self.nds.length, APP_CONFIG['max_number_of_way_nodes']) end self.nds.each do |n| node = Node.find(:first, :conditions => ["id = ?", n])