Fix rubocop class length error

This commit is contained in:
James Wu
2023-01-26 21:51:55 +09:00
committed by David Cook
parent ae5f2cc19d
commit 00cc8da2fc

View File

@@ -41,9 +41,8 @@ module Spree
where(id: non_unique_matches.map(&:id))
}
scope :for_distributor, lambda { |distributor|
joins(:distributors).
where('enterprises.id = ?', distributor)
scope :for_distributor, ->(distributor) {
joins(:distributors).where('enterprises.id = ?', distributor)
}
scope :for_subscriptions, -> { where(type: Subscription::ALLOWED_PAYMENT_METHOD_TYPES) }