cleanup syntax of Relation#all at WikiController#export
git-svn-id: http://svn.redmine.org/redmine/trunk@12620 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
39ceaa7d55
commit
7484cf07b6
@ -277,7 +277,10 @@ class WikiController < ApplicationController
|
|||||||
|
|
||||||
# Export wiki to a single pdf or html file
|
# Export wiki to a single pdf or html file
|
||||||
def export
|
def export
|
||||||
@pages = @wiki.pages.all(:order => 'title', :include => [:content, {:attachments => :author}])
|
@pages = @wiki.pages.
|
||||||
|
order('title').
|
||||||
|
includes([:content, {:attachments => :author}]).
|
||||||
|
all
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html {
|
format.html {
|
||||||
export = render_to_string :action => 'export_multiple', :layout => false
|
export = render_to_string :action => 'export_multiple', :layout => false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user