X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/058d942c7ce9a25bd64c6673dbca15c718c7ef59..3d0ca940d26bdc23aa791178b01b816185c5a086:/app/models/relation.rb diff --git a/app/models/relation.rb b/app/models/relation.rb index 8078cf860..1553414e6 100644 --- a/app/models/relation.rb +++ b/app/models/relation.rb @@ -218,11 +218,6 @@ class Relation < ActiveRecord::Base # in the hash to be overwritten. raise OSM::APIDuplicateTagsError.new("relation", self.id, k) if @tags.include? k - # check tag size here, as we don't create a RelationTag object until - # just before we save... - raise OSM::APIBadUserInput.new("Relation #{self.id} has a tag with too long a key, '#{k}'.") if k.length > 255 - raise OSM::APIBadUserInput.new("Relation #{self.id} has a tag with too long a value, '#{k}'='#{v}'.") if v.length > 255 - @tags[k] = v end