Sha256: dc5ccfe698e46ab00fb4d7ebb1d973b5724183c5aa68f685be8fb81796e90f8d

Contents?: true

Size: 204 Bytes

Versions: 2

Compression:

Stored size: 204 Bytes

Contents

class CancellationsController < ApplicationController
  def new
  end

  def create
    Current.<%= singular_table_name %>.destroy
    redirect_to sign_in_path, notice: "Your account is closed"
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
authentication-zero-2.1.1 lib/generators/authentication/templates/controllers/html/cancellations_controller.rb.tt
authentication-zero-2.1.0 lib/generators/authentication/templates/controllers/html/cancellations_controller.rb.tt