Module: SpreeStripe::UserDecorator
- Defined in:
- app/models/spree_stripe/user_decorator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.prepended(base) ⇒ Object
3 4 5 |
# File 'app/models/spree_stripe/user_decorator.rb', line 3 def self.prepended(base) base.after_update :update_stripe_customer, if: :should_update_stripe_customer? end |
Instance Method Details
#update_stripe_customer ⇒ Object
7 8 9 |
# File 'app/models/spree_stripe/user_decorator.rb', line 7 def update_stripe_customer SpreeStripe::UpdateCustomerJob.perform_later(id) end |