Module: GimmeGimme::CreditCardsController::InstanceMethods

Defined in:
lib/gimme_gimme/credit_cards_controller.rb

Instance Method Summary collapse

Instance Method Details

#destroyObject



10
11
12
13
14
15
# File 'lib/gimme_gimme/credit_cards_controller.rb', line 10

def destroy
  @user = current_user
  credit_card = @user.credit_cards.find(params[:id])

  credit_card.destroy
end