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