Class: Decidim::DecidimAwesome::Admin::ChecksController

Inherits:
ApplicationController
  • Object
show all
Includes:
MaintenanceContext, NeedsAwesomeConfig
Defined in:
app/controllers/decidim/decidim_awesome/admin/checks_controller.rb

Overview

System compatibility analyzer

Instance Method Summary collapse

Methods included from NeedsAwesomeConfig

extended, included

Methods inherited from ApplicationController

#permission_class_chain

Instance Method Details

#migrate_imagesObject



18
19
20
21
22
# File 'app/controllers/decidim/decidim_awesome/admin/checks_controller.rb', line 18

def migrate_images
  Decidim::DecidimAwesome::MigrateLegacyImagesJob.perform_later(current_organization.id)
  flash[:notice] = I18n.t("image_migrations_started", scope: "decidim.decidim_awesome.admin.checks.index")
  redirect_to checks_maintenance_index_path
end