@@ -17,7 +17,7 | |||||
17 |
|
17 | |||
18 | class Wiki < ActiveRecord::Base |
|
18 | 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, :order => 'title' | |
21 | has_many :redirects, :class_name => 'WikiRedirect', :dependent => :delete_all |
|
21 | has_many :redirects, :class_name => 'WikiRedirect', :dependent => :delete_all | |
22 |
|
22 | |||
23 | validates_presence_of :start_page |
|
23 | validates_presence_of :start_page |
General Comments 0
You need to be logged in to leave comments.
Login now