Add comments to Wiki pages

This commit is contained in:
Ian Morgan 2012-07-19 20:09:19 -04:00
parent 652d28f56b
commit 36efa2042c
10 changed files with 72 additions and 1 deletions

View file

@ -1,6 +1,7 @@
class Wiki < ActiveRecord::Base
belongs_to :project
belongs_to :user
has_many :notes, :as => :noteable, :dependent => :destroy
validates :content, :title, :user_id, :presence => true
validates :title, :length => 1..250