]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/relation.rb
Using an around_handler for catching and rendering errors in most of the API controll...
[rails.git] / app / models / relation.rb
index 8078cf86097a597e9cdf9d4f0dc07ca47b19ccb1..1553414e62bc28f099602d201d0d4fc93de2a8e6 100644 (file)
@@ -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