]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/tracetag.rb
Add links to the ToU and include them in signup
[rails.git] / app / models / tracetag.rb
index 1a4fbd39889195a4653fcc1ed9fec5be3d8e4126..84b6c6dfa8394404c3757a20145e1a77a6791c82 100644 (file)
@@ -22,5 +22,5 @@ class Tracetag < ActiveRecord::Base
   belongs_to :trace, :foreign_key => "gpx_id"
 
   validates :trace, :associated => true
-  validates :tag, :length => 1..255, :format => %r{\A[^/;.,?]*\z}
+  validates :tag, :length => 1..255, :characters => { :url_safe => true }
 end