]> git.openstreetmap.org Git - rails.git/blobdiff - app/models/redaction.rb
Merge remote-tracking branch 'upstream/pull/2051'
[rails.git] / app / models / redaction.rb
index b835864db074b40e7c27cfd8521e0689b96aa979..e6d7487066fed12e879442d8e2cae74b9b3c1f81 100644 (file)
@@ -31,7 +31,8 @@ class Redaction < ActiveRecord::Base
   has_many :old_ways
   has_many :old_relations
 
-  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