From a4f1b9c6253611e27ec1b07d10e2205582587bce Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Thu, 26 Mar 2015 15:47:27 +0800 Subject: [PATCH] =?UTF-8?q?model=E4=B8=AD=E4=BC=9A=E6=9C=89=E8=AE=B8?= =?UTF-8?q?=E5=A4=9Akindeditor=E7=9A=84=E8=B5=84=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/forum.rb | 1 + 1 file changed, 1 insertion(+) 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'