@@ -277,7 +277,10 class WikiController < ApplicationController | |||
|
277 | 277 | |
|
278 | 278 | # Export wiki to a single pdf or html file |
|
279 | 279 | def export |
|
280 | @pages = @wiki.pages.all(:order => 'title', :include => [:content, {:attachments => :author}]) | |
|
280 | @pages = @wiki.pages. | |
|
281 | order('title'). | |
|
282 | includes([:content, {:attachments => :author}]). | |
|
283 | all | |
|
281 | 284 | respond_to do |format| |
|
282 | 285 | format.html { |
|
283 | 286 | export = render_to_string :action => 'export_multiple', :layout => false |
General Comments 0
You need to be logged in to leave comments.
Login now