app/controllers/extensions_controller.rb
#
# PUT /extensions/:extension/disable
#
# Allows an admin to disable an extension, hiding it from view.
#
PUT /extensions/:extension/disable
Allows an admin to disable an extension, hiding it from view.
PUT / extensions / : extension / disable Allows an admin to disable an extension hiding it from view .
def disable
    authorize! @extension, :disable?
    @extension.update_attribute(:enabled, false)
    ExtensionDisabledNotifier.perform_async(@extension.id)
    redirect_to "/", notice: t("extension.disabled", extension: @extension.name)
  end
def disable authorize! @extension , :disable? @extension . update_attribute ( :enabled , false ) ExtensionDisabledNotifier . perform_async ( @extension . id ) redirect_to "/" , notice : t ( "extension.disabled" , extension : @extension . name ) end
PUT /extensions/:extension/disable
Allows an admin to disable an extension, hiding it from view.
PUT / extensions / : extension / disable Allows an admin to disable an extension hiding it from view .