@@ -19,7 +19,7 class Wiki < ActiveRecord::Base | |||||
19 | belongs_to :project |
|
19 | belongs_to :project | |
20 | has_many :pages, :class_name => 'WikiPage', :dependent => :destroy |
|
20 | has_many :pages, :class_name => 'WikiPage', :dependent => :destroy | |
21 |
|
21 | |||
22 |
validates_presence_of |
|
22 | validates_presence_of :start_page | |
23 |
|
23 | |||
24 | # find the page with the given title |
|
24 | # find the page with the given title | |
25 | # if page doesn't exist, return a new page |
|
25 | # if page doesn't exist, return a new page |
General Comments 0
You need to be logged in to leave comments.
Login now