需要插入资源上传的时候插入数据库记录

This commit is contained in:
lizanle 2015-03-18 08:52:49 +08:00
parent 7b9c006d95
commit da69443913
1 changed files with 1 additions and 1 deletions

View File

@ -1,4 +1,4 @@
class DiscussDemo < ActiveRecord::Base
attr_accessible :title, :body
has_many_kindeditor_assets :attachments, :dependent => :destroy
has_many_kindeditor_assets :assets, :dependent => :destroy
end