Settings export refactor (#1646)

* Refactor Export to take an account and know about the export types

* Use Export instance in settings/exports#show
This commit is contained in:
Matt Jankowski
2017-04-13 07:02:02 -04:00
committed by Eugen
parent faefd8ec8f
commit 0e39cc6a35
8 changed files with 49 additions and 19 deletions

View File

@ -5,8 +5,8 @@ module Settings
class MutedAccountsController < BaseController
private
def export_accounts
current_account.muting
def export_data
@export.to_muted_accounts_csv
end
end
end