Class: SolidusSubscriptions::Processor
- Inherits:
-
Object
- Object
- SolidusSubscriptions::Processor
- Defined in:
- lib/solidus_subscriptions/processor.rb
Class Method Summary collapse
Class Method Details
.run ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/solidus_subscriptions/processor.rb', line 6 def run SolidusSubscriptions::Subscription .where(installments: SolidusSubscriptions::Installment.actionable) .or(SolidusSubscriptions::Subscription.actionable) .distinct .find_each do |subscription| ProcessSubscriptionJob.perform_later(subscription) end end |