Sha256: 5f1bff9c8c8128ef9a75814db58f4ed5274fc17fe5e7988e0e2b2b7a7feab567

Contents?: true

Size: 266 Bytes

Versions: 5

Compression:

Stored size: 266 Bytes

Contents

class CancellationsController < ApplicationController
  def new
  end

  def destroy
    Current.<%= singular_table_name %>.destroy
    cookies.delete :session_token
    redirect_to sign_in_path, notice: "Bye! Your account has been successfully cancelled"
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
authentication-zero-0.0.5 lib/generators/authentication/templates/controllers/html/cancellations_controller.rb.tt
authentication-zero-0.0.4 lib/generators/authentication/templates/controllers/html/cancellations_controller.rb.tt
authentication-zero-0.0.3 lib/generators/authentication/templates/controllers/html/cancellations_controller.rb.tt
authentication-zero-0.0.2 lib/generators/authentication/templates/controllers/html/cancellations_controller.rb.tt
authentication-zero-0.0.1 lib/generators/authentication/templates/controllers/html/cancellations_controller.rb.tt