diff options
author | Marc Rohloff <marc@marcrohloff.com> | 2020-07-29 15:26:15 -0600 |
---|---|---|
committer | Marc Rohloff <marc@marcrohloff.com> | 2020-07-29 15:26:15 -0600 |
commit | 916ce43b5329e469b52ad25479c5174442d5c3f4 (patch) | |
tree | fda04d4ae3f9d2af7aa02b5bd109a53660f5bd1c /lib/solidus_subscriptions/processor.rb | |
parent | 1afd16974d8b77b3a695ca641ed9b868b3a5b8c7 (diff) |
Use Spree.user_class instead of Spree::User to allow for custom user classes. Thanks to @ejdraper
Diffstat (limited to 'lib/solidus_subscriptions/processor.rb')
-rw-r--r-- | lib/solidus_subscriptions/processor.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/solidus_subscriptions/processor.rb b/lib/solidus_subscriptions/processor.rb index 96717cc..be8a2f5 100644 --- a/lib/solidus_subscriptions/processor.rb +++ b/lib/solidus_subscriptions/processor.rb @@ -22,7 +22,7 @@ module SolidusSubscriptions subscriptions = SolidusSubscriptions::Subscription.arel_table installments = SolidusSubscriptions::Installment.arel_table - ::Spree::User. + ::Spree.user_class. joins(:subscriptions). joins( subscriptions. |