core/app/finders/spree/product_properties/find_available.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
module Spree
  module ProductProperties
    class FindAvailable
      include ProductFilterable

      def initialize(scope: ProductProperty.spree_base_scopes, products_scope: Product.spree_base_scopes)
        @scope = scope
        @products_scope = products_scope
      end

      def execute
        find_available(scope, products_scope).includes(:translations)
      end

      private

      attr_reader :scope, :products_scope
    end
  end
end