Sha256: 5de6d13ee933a2adc8ffd215317d90887a037b7a91cfd4cf64f8d2ffbcb52396
Contents?: true
Size: 518 Bytes
Versions: 61
Compression:
Stored size: 518 Bytes
Contents
module CatarsePagarme class SubscriptionsController < CreditCardBaseController def create charge_with_class SaveCreditCardTransaction end def update charge_with_class SubscriptionTransaction end protected def credit_card_attributes attributes = super if has_subscription? attributes.update({subscription_id: params[:subscription_id]}) end attributes end def has_subscription? params[:subscription_id].present? end end end
Version data entries
61 entries across 61 versions & 1 rubygems