Remove new CSV report generation
The new CSV report was more configurable and could work on proposals,
processes and comments. However, it had several issues.
In the public area, by default it generated a blank file.
In the admin section, the report was hard to configure and it generated
a file with less quality than the old system.
So until we improve this system, we're bringing back the old investment
CSV exporter.
This commit reverts most of commit 9d1ca3bf.
This commit is contained in:
@@ -1,18 +1,5 @@
|
||||
class Admin::CommentsController < Admin::BaseController
|
||||
include DownloadSettingsHelper
|
||||
|
||||
def index
|
||||
@comments = Comment.sort_by_newest.page(params[:page])
|
||||
|
||||
respond_to do |format|
|
||||
format.html
|
||||
|
||||
format.csv do
|
||||
send_data to_csv(Comment.sort_by_newest, Comment),
|
||||
type: "text/csv",
|
||||
disposition: "attachment",
|
||||
filename: "comments.csv"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user