X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/15b104f4ff4614aa78c01180b6a9b89dd5a1400f..73fe5a13df75ffbe12002fbd7ebc71744d2ae07b:/app/models/redaction.rb?ds=inline diff --git a/app/models/redaction.rb b/app/models/redaction.rb index b835864db..e6d748706 100644 --- a/app/models/redaction.rb +++ b/app/models/redaction.rb @@ -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