1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-30 12:19:38 +00:00

Preload wiki page content for search results.

git-svn-id: http://svn.redmine.org/redmine/trunk@13814 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2014-12-26 12:23:05 +00:00
parent a9e53531d3
commit 1699e37a0c

View File

@ -34,7 +34,7 @@ class WikiPage < ActiveRecord::Base
acts_as_searchable :columns => ['title', "#{WikiContent.table_name}.text"],
:scope => joins(:content, {:wiki => :project}),
:preload => {:wiki => :project},
:preload => [:content, {:wiki => :project}],
:permission => :view_wiki_pages,
:project_key => "#{Wiki.table_name}.project_id"