X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1e57189366c0e4a49cb29658e9bf5985996709a2..74e1d7336ef926d4c3ef986abd8b899a7c4b6704:/app/models/node_tag.rb diff --git a/app/models/node_tag.rb b/app/models/node_tag.rb index cdc11300e..43915bc12 100644 --- a/app/models/node_tag.rb +++ b/app/models/node_tag.rb @@ -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 }, :invalid_chars => true + validates :k, :v, :allow_blank => true, :length => { :maximum => 255 }, :characters => true validates :k, :uniqueness => { :scope => :node_id } end