summaryrefslogtreecommitdiffstats
path: root/app/models/message.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-02-03 17:13:37 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-02-03 17:13:37 +0000
commit33bd7f45e1f8dff469173b950146309ed564d134 (patch)
treec637fcf746b039d84d2a0a73ee35a7e73c835618 /app/models/message.rb
parentbf107f000d230ecff0b43d1ad2d6bdf5d579d256 (diff)
downloadredmine-33bd7f45e1f8dff469173b950146309ed564d134.tar.gz
redmine-33bd7f45e1f8dff469173b950146309ed564d134.zip
Fixes message search eager loading (#2654).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2359 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/message.rb')
-rw-r--r--app/models/message.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/message.rb b/app/models/message.rb
index 080e757b3..716c53b0b 100644
--- a/app/models/message.rb
+++ b/app/models/message.rb
@@ -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}"},