summaryrefslogtreecommitdiffstats
path: root/app/models/wiki.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-13 21:44:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-07-13 21:44:38 +0000
commit0eba42423af05a5507b8b1889b6904d5d5a5f79c (patch)
tree8890ce921adfbf061873ad5ab7c28d8335128c97 /app/models/wiki.rb
parent9ba4075c88b6bf3c449ae890d6fd1a37c9d41f80 (diff)
downloadredmine-0eba42423af05a5507b8b1889b6904d5d5a5f79c.tar.gz
redmine-0eba42423af05a5507b8b1889b6904d5d5a5f79c.zip
Set order on wiki pages association.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1665 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/wiki.rb')
-rw-r--r--app/models/wiki.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/wiki.rb b/app/models/wiki.rb
index b6d6a9b50..3432a2bc7 100644
--- a/app/models/wiki.rb
+++ b/app/models/wiki.rb
@@ -17,7 +17,7 @@
class Wiki < ActiveRecord::Base
belongs_to :project
- has_many :pages, :class_name => 'WikiPage', :dependent => :destroy
+ has_many :pages, :class_name => 'WikiPage', :dependent => :destroy, :order => 'title'
has_many :redirects, :class_name => 'WikiRedirect', :dependent => :delete_all
validates_presence_of :start_page