需要插入资源上传的时候插入数据库记录
This commit is contained in:
parent
7b9c006d95
commit
da69443913
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue