]> 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 639bbc07af6b7e27bafeb595b8682956cdc021ed..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, :invalid_chars => true
+  validates :k, :v, :length => 1..255, :characters => true
 
   # Turn this Node in to an XML Node without the <osm> wrapper.
   def to_xml_node