diff options
author | Brendan Deere <brendan@stembolt.com> | 2016-10-03 09:45:16 -0700 |
---|---|---|
committer | Brendan Deere <brendan@stembolt.com> | 2016-10-03 09:45:16 -0700 |
commit | 6de23ba30fa14e3f1907b9f070defda0de9b7378 (patch) | |
tree | 32f246144b64724bf14753f91c98e2433261cba3 /lib/solidus_subscriptions/processor.rb | |
parent | cd201dc319691c27b6fb030880e3923813e9b79d (diff) |
Usefully qualified names in processor#run
Something about the inheritance from the singleton class here is
interrupting normal rails constant lookup.
As an interm fix, use the fully qualified class names
Diffstat (limited to 'lib/solidus_subscriptions/processor.rb')
-rw-r--r-- | lib/solidus_subscriptions/processor.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/solidus_subscriptions/processor.rb b/lib/solidus_subscriptions/processor.rb index 97b39df..41796f9 100644 --- a/lib/solidus_subscriptions/processor.rb +++ b/lib/solidus_subscriptions/processor.rb @@ -18,8 +18,8 @@ module SolidusSubscriptions private def batched_users_to_be_processed - subscriptions = Subscription.arel_table - installments = Installment.arel_table + subscriptions = SolidusSubscriptions::Subscription.arel_table + installments = SolidusSubscriptions::Installment.arel_table Spree::User. joins(:subscriptions). @@ -30,8 +30,8 @@ module SolidusSubscriptions join_sources ). where( - Subscription.actionable.arel.constraints.reduce(:and). - or(Installment.actionable.arel.constraints.reduce(:and)) + SolidusSubscriptions::Subscription.actionable.arel.constraints.reduce(:and). + or(SolidusSubscriptions::Installment.actionable.arel.constraints.reduce(:and)) ). distinct. find_in_batches |