lib/generators/authentication/templates/controllers/html/registrations_controller.rb.tt in authentication-zero-2.8.0 vs lib/generators/authentication/templates/controllers/html/registrations_controller.rb.tt in authentication-zero-2.8.1

- old
+ new

@@ -1,7 +1,7 @@ class RegistrationsController < ApplicationController - skip_before_action :authenticate, only: %i[ new create ] + skip_before_action :authenticate def new @<%= singular_table_name %> = <%= class_name %>.new end @@ -14,13 +14,9 @@ redirect_to root_path, notice: "Welcome! You have signed up successfully" else render :new, status: :unprocessable_entity end - end - - def destroy - Current.<%= singular_table_name %>.destroy; redirect_to(sign_in_path, notice: "Your account is closed") end private def <%= "#{singular_table_name}_params" %> params.require(:<%= singular_table_name %>).permit(:email, :password, :password_confirmation)