mirror of
https://github.com/redmine/redmine.git
synced 2026-05-06 19:37:31 +02: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:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user