core/app/models/product_scope.rb
# Get all products with this scope
Get all products with this scope
Get all products with this scope
def products
    if Product.condition?(self.name)
      Product.send(self.name, *self.arguments)
    end
  end
def products if Product . condition? ( self . name ) Product . send ( self . name , * self . arguments ) end end
Get all products with this scope
Get all products with this scope