forked from bofh/fetsite
meetings added, documents added
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
class Document < ActiveRecord::Base
|
||||
attr_accessible :etherpadkey, :name, :parent, :text, :typ
|
||||
belongs_to :parent, :polymorphic => true
|
||||
validate :name, :length=>{minimum:3}
|
||||
validate :text, :presence=>true
|
||||
validate :typ, :presence=>true
|
||||
validate :parent, :presence=>true
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user