app/controllers/extensions_controller.rb
#
# DELETE /extensions/:extension/deprecate
#
# Un-deprecates the extension and sets its replacement extension to nil.
#
DELETE /extensions/:extension/deprecate
Un-deprecates the extension and sets its replacement extension to nil.
DELETE / extensions / : extension / deprecate Un - deprecates the extension and sets its replacement extension to nil .
def undeprecate
    authorize! @extension
    @extension.update_attributes(deprecated: false, replacement: nil)
    redirect_to(
      owner_scoped_extension_url(@extension),
      notice: t(
        'extension.undeprecated',
        extension: @extension.name
      )
    )
  end
def undeprecate authorize! @extension @extension . update_attributes ( deprecated : false , replacement : nil ) redirect_to ( owner_scoped_extension_url ( @extension ) , notice : t ( 'extension.undeprecated' , extension : @extension . name ) ) end
DELETE /extensions/:extension/deprecate
Un-deprecates the extension and sets its replacement extension to nil.
DELETE / extensions / : extension / deprecate Un - deprecates the extension and sets its replacement extension to nil .