diff --git a/app/models/discuss_demo.rb b/app/models/discuss_demo.rb index cb8b8c1dd..74b21f9d4 100644 --- a/app/models/discuss_demo.rb +++ b/app/models/discuss_demo.rb @@ -1,4 +1,4 @@ class DiscussDemo < ActiveRecord::Base attr_accessible :title, :body - validates_presence_of :title, :body + has_many_kindeditor_assets :attachments, :dependent => :destroy end