]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/node_tag.rb
Added tests for validators
[rails.git] / app / models / node_tag.rb
index 20065b993137f8e1df485c24c81d716371c062ae..cdc11300e8e1f16df244ffb6738f6f572ff5b443 100644 (file)
@@ -18,6 +18,6 @@ class NodeTag < ActiveRecord::Base
   belongs_to :node
 
   validates :node, :presence => true, :associated => true
-  validates :k, :v, :allow_blank => true, :length => { :maximum => 255 }
+  validates :k, :v, :allow_blank => true, :length => { :maximum => 255 }, :invalid_chars => true
   validates :k, :uniqueness => { :scope => :node_id }
 end