diff options
author | Ian Morgan <ian@ruby-code.com> | 2012-07-20 04:09:19 +0400 |
---|---|---|
committer | Ian Morgan <ian@ruby-code.com> | 2012-07-20 04:23:55 +0400 |
commit | 36efa2042cb94571957582c7bd4316a3559696e6 (patch) | |
tree | 12782e5d9794a3e1f31222c53889d479db060e8d /app/models/wiki.rb | |
parent | 652d28f56bdf7bb2e2f2e2619221535a7bb2ec04 (diff) |
Add comments to Wiki pages
Diffstat (limited to 'app/models/wiki.rb')
-rw-r--r-- | app/models/wiki.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/wiki.rb b/app/models/wiki.rb index ecc46fb4efb..d9ec069d14b 100644 --- a/app/models/wiki.rb +++ b/app/models/wiki.rb @@ -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 |