diff --git a/app/models/forum.rb b/app/models/forum.rb index 878937ea7..bdadcd8a9 100644 --- a/app/models/forum.rb +++ b/app/models/forum.rb @@ -1,5 +1,6 @@ class Forum < ActiveRecord::Base include Redmine::SafeAttributes + has_many_kindeditor_assets :assets, :dependent => :destroy has_many :topics, :class_name => 'Memo', :conditions => "#{Memo.table_name}.parent_id IS NULL", :order => "#{Memo.table_name}.created_at DESC", :dependent => :destroy has_many :memos, :dependent => :destroy, conditions: "parent_id IS NULL" belongs_to :creator, :class_name => "User", :foreign_key => 'creator_id'