FEATURE: export screened IPs list in a CSV file

This commit is contained in:
Arpit Jalan
2014-11-21 20:55:04 +05:30
parent 0398ab7514
commit 515882d224
7 changed files with 75 additions and 16 deletions

View File

@@ -8,6 +8,12 @@ class Admin::ExportCsvController < Admin::AdminController
render json: success_json
end
def export_screened_ips_list
# export csv file in a background thread
Jobs.enqueue(:export_csv_file, entity: 'screened_ips', user_id: current_user.id)
render json: success_json
end
# download
def show
filename = params.fetch(:id)