Skip to content
Snippets Groups Projects
Commit 7fb7817b authored by pabois's avatar pabois
Browse files

add comment

parent db604aac
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ class Admin::Communication::Extranets::ContactsController < Admin::Communication
@organizations = @organizations.page params[:organizations_page]
}
format.xlsx {
# could be 2 differents controllers in Contacts/People & Contacts#Organizations, each with an index export
@export = params['export']
filename = "#{@export}-#{Time.now.strftime("%Y%m%d%H%M%S")}.xlsx"
response.headers['Content-Disposition'] = "attachment; filename=#{filename}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment