X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/fa13a11a94a96e47582483503753ced3db438f6f..94c89838d4e7f3c767cea5f20709c52e1b8e4816:/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