summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/api/v1/cakes_controller.rb2
-rw-r--r--app/controllers/my/kitchens_controller.rb1
2 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/api/v1/cakes_controller.rb b/app/controllers/api/v1/cakes_controller.rb
index 8888d286..8216d1cf 100644
--- a/app/controllers/api/v1/cakes_controller.rb
+++ b/app/controllers/api/v1/cakes_controller.rb
@@ -2,7 +2,7 @@ module Api
module V1
class CakesController < ApiController
def index
- @cakes = current_user.creations
+ @cakes = current_user.creations.includes(:category, :photos, :tags, :tag_taggings)
end
def show
diff --git a/app/controllers/my/kitchens_controller.rb b/app/controllers/my/kitchens_controller.rb
index 5c9b768b..6b303aa4 100644
--- a/app/controllers/my/kitchens_controller.rb
+++ b/app/controllers/my/kitchens_controller.rb
@@ -3,6 +3,7 @@ module My
def show
@tags = Tag.unique_tags
@cakes = current_user.creations.includes(:category, :photos, :tags, :tag_taggings)
+ @tutorials = current_user.tutorials.includes(:tags, :tag_taggings)
end
end
end