Class: MembershipCancellationsController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- MembershipCancellationsController
- Defined in:
- app/controllers/membership_cancellations_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
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 |
#new ⇒ Object
8 9 10 11 |
# File 'app/controllers/membership_cancellations_controller.rb', line 8 def new @cancellation = MembershipCancellation.new(params[:membership_ids]) respond_with end |