Sha256: a45a6a564d3348187f68512fd87d9df3a669e4de87aff36d15b007d3ab04f305
Contents?: true
Size: 304 Bytes
Versions: 2
Compression:
Stored size: 304 Bytes
Contents
class Sprangular::CreditCardsController < Sprangular::BaseController before_filter :check_authorization def destroy authorize! :update, @user credit_card = @user.credit_cards.find params[:id] @user.drop_payment_source(credit_card) if credit_card respond_with credit_card end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sprangular-0.1.0 | app/controllers/sprangular/credit_cards_controller.rb |
sprangular-0.0.1 | app/controllers/sprangular/credit_cards_controller.rb |