Skip to content

Commit

Permalink
Includes images and variants of products in home
Browse files Browse the repository at this point in the history
  • Loading branch information
YOSHIDA Hiroki committed Nov 20, 2015
1 parent dbec2fe commit af0a32e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/app/controllers/comable/home_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def show
private

def load_products
@products = Comable::Product.limit(5)
@products = Comable::Product.includes(:images, :variants).limit(4)
end
end
end

0 comments on commit af0a32e

Please sign in to comment.