Add CSV export for lists and domain blocks (#9677)

Fix #6893
Fix #9268
This commit is contained in:
Eugen Rochko
2019-01-01 13:44:04 +01:00
committed by GitHub
parent 1d4215be77
commit 7fc7437d05
5 changed files with 82 additions and 4 deletions

View File

@ -0,0 +1,19 @@
# frozen_string_literal: true
module Settings
module Exports
class BlockedDomainsController < ApplicationController
include ExportControllerConcern
def index
send_export_file
end
private
def export_data
@export.to_blocked_domains_csv
end
end
end
end

View File

@ -0,0 +1,19 @@
# frozen_string_literal: true
module Settings
module Exports
class ListsController < ApplicationController
include ExportControllerConcern
def index
send_export_file
end
private
def export_data
@export.to_lists_csv
end
end
end
end