X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/43988beec3fd4da67b2cacad771ca339ef60a8ab..e3cbeeae9453a0108733316e5119d0038abab760:/app/models/way.rb diff --git a/app/models/way.rb b/app/models/way.rb index f608dccc8..935a7422c 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -191,11 +191,6 @@ class Way < ActiveRecord::Base # in the hash to be overwritten. raise OSM::APIDuplicateTagsError.new("way", self.id, k) if @tags.include? k - # check tag size here, as we don't create a WayTag object until - # just before we save... - raise OSM::APIBadUserInput.new("Way #{self.id} has a tag with too long a key, '#{k}'.") if k.length > 255 - raise OSM::APIBadUserInput.new("Way #{self.id} has a tag with too long a value, '#{k}'='#{v}'.") if v.length > 255 - @tags[k] = v end