Method: Pay::FakeProcessor::Subscription#cancel_now!
- Defined in:
- app/models/pay/fake_processor/subscription.rb
#cancel_now!(**options) ⇒ Object
19 20 21 22 23 24 25 26 27 28 |
# File 'app/models/pay/fake_processor/subscription.rb', line 19 def cancel_now!(**) return if canceled? ends_at = Time.current update( status: :canceled, trial_ends_at: (ends_at if trial_ends_at?), ends_at: ends_at ) end |