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:
parent
faefd8ec8f
commit
0e39cc6a35
8 changed files with 49 additions and 19 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue