]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/user_preference.rb
Add links to the ToU and include them in signup
[rails.git] / app / models / user_preference.rb
index 69b0e9ddec9fc020787c76165f3323ec9cceccd7..3963bd02aeb47ade7f6b47faf15293412b63c604 100644 (file)
@@ -17,7 +17,7 @@ class UserPreference < ActiveRecord::Base
   belongs_to :user
 
   validates :user, :presence => true, :associated => true
-  validates :k, :v, :length => 1..255
+  validates :k, :v, :length => 1..255, :characters => true
 
   # Turn this Node in to an XML Node without the <osm> wrapper.
   def to_xml_node