Class: MembershipCancellationsController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/membership_cancellations_controller.rb

Instance Method Summary collapse

Instance Method Details

#createObject



13
14
15
16
# File 'app/controllers/membership_cancellations_controller.rb', line 13

def create
  @membership_count = params[:membership_ids].count
  MembershipCancellation.enqueue(params[:membership_ids])
end

#newObject



8
9
10
11
# File 'app/controllers/membership_cancellations_controller.rb', line 8

def new
  @cancellation = MembershipCancellation.new(params[:membership_ids])
  respond_with
end