app/controllers/comable/home_controller.rb in comable-frontend-0.7.0.beta2 vs app/controllers/comable/home_controller.rb in comable-frontend-0.7.0
- old
+ new
@@ -6,9 +6,9 @@
end
private
def load_products
- @products = Comable::Product.limit(5)
+ @products = Comable::Product.includes(:images, :variants).limit(4)
end
end
end