]> source.dussan.org Git - redmine.git/commitdiff
Fixes message search eager loading (#2654).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 3 Feb 2009 17:13:37 +0000 (17:13 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 3 Feb 2009 17:13:37 +0000 (17:13 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2359 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/message.rb

index 080e757b3e3fd4ab545a350cb97ef62f4677bd3a..716c53b0b804420073a307088215f7f142fa3f5e 100644 (file)
@@ -23,7 +23,7 @@ class Message < ActiveRecord::Base
   belongs_to :last_reply, :class_name => 'Message', :foreign_key => 'last_reply_id'
   
   acts_as_searchable :columns => ['subject', 'content'],
-                     :include => {:board, :project},
+                     :include => {:board => :project},
                      :project_key => 'project_id',
                      :date_column => "#{table_name}.created_on"
   acts_as_event :title => Proc.new {|o| "#{o.board.name}: #{o.subject}"},