diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-03 17:13:37 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2009-02-03 17:13:37 +0000 |
commit | 33bd7f45e1f8dff469173b950146309ed564d134 (patch) | |
tree | c637fcf746b039d84d2a0a73ee35a7e73c835618 /app/models/message.rb | |
parent | bf107f000d230ecff0b43d1ad2d6bdf5d579d256 (diff) | |
download | redmine-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.rb | 2 |
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}"}, |