X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/873ac155cabfb1aab8d887d07bc8389617d3f843..47498efcc3f35ac0cd656cbb2f3e621e1ba3f123:/app/models/redaction.rb diff --git a/app/models/redaction.rb b/app/models/redaction.rb index e99460c3b..e6d748706 100644 --- a/app/models/redaction.rb +++ b/app/models/redaction.rb @@ -31,8 +31,8 @@ class Redaction < ActiveRecord::Base has_many :old_ways has_many :old_relations - validates :title, :presence => true, :invalid_chars => true - validates :description, :presence => true, :invalid_chars => true + validates :title, :presence => true, :characters => true + validates :description, :presence => true, :characters => true validates :description_format, :inclusion => { :in => %w[text html markdown] } # this method overrides the AR default to provide the rich