]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/redaction.rb
Update gravatar methods to check for Active Storage images
[rails.git] / app / models / redaction.rb
index d9a5c6cd793091fd893facd7b8130c1af2bc2473..d9b2a5579c5bf3b72831649b5d4d04cc5ca41326 100644 (file)
@@ -31,8 +31,8 @@ class Redaction < ActiveRecord::Base
   has_many :old_ways
   has_many :old_relations
 
-  validates :title, :description, :invalid_chars => true
-  validates :description, :presence => 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