You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
392 B

  1. # frozen_string_literal: true
  2. class Settings::ExportsController < Settings::BaseController
  3. include Authorization
  4. def show
  5. @export = Export.new(current_account)
  6. @backups = current_user.backups
  7. end
  8. def create
  9. authorize :backup, :create?
  10. backup = current_user.backups.create!
  11. BackupWorker.perform_async(backup.id)
  12. redirect_to settings_export_path
  13. end
  14. end