model类
This commit is contained in:
parent
0c86ba210d
commit
39cbeced87
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue