summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-11-18 14:37:37 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-11-18 14:37:37 +0000
commit46d27348fd60128b7d220d209f6d9382003aa165 (patch)
treef75bc2df162aa6f2831ae610418bbc2a3b1a0dba /app
parent1ff8bbf080c6e1840b4188d94f6c2e58476960a2 (diff)
downloadredmine-46d27348fd60128b7d220d209f6d9382003aa165.tar.gz
redmine-46d27348fd60128b7d220d209f6d9382003aa165.zip
Eager-load authors.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10841 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/controllers/wiki_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/wiki_controller.rb b/app/controllers/wiki_controller.rb
index 98b2dbcd8..24fae9340 100644
--- a/app/controllers/wiki_controller.rb
+++ b/app/controllers/wiki_controller.rb
@@ -284,7 +284,7 @@ class WikiController < ApplicationController
# Export wiki to a single pdf or html file
def export
- @pages = @wiki.pages.all(:order => 'title', :include => [:content, :attachments])
+ @pages = @wiki.pages.all(:order => 'title', :include => [:content, {:attachments => :author}])
respond_to do |format|
format.html {
export = render_to_string :action => 'export_multiple', :layout => false