From 0eba42423af05a5507b8b1889b6904d5d5a5f79c Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 13 Jul 2008 21:44:38 +0000 Subject: [PATCH] Set order on wiki pages association. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1665 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/models/wiki.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5