summaryrefslogtreecommitdiff
path: root/app/controllers/api
diff options
context:
space:
mode:
authormo <mo.khan@gmail.com>2017-09-24 18:06:07 -0600
committermo <mo.khan@gmail.com>2017-09-24 18:06:07 -0600
commitc7ee6fd5562231619169918d8bd75093a01218d1 (patch)
treeb29c8bbae66a3c554c0b48516fd344a10b72a42d /app/controllers/api
parent576a045848457252df3b96e1bd66532d5c86b382 (diff)
load tutorials collection on the page.
Diffstat (limited to 'app/controllers/api')
-rw-r--r--app/controllers/api/v1/cakes_controller.rb2
1 files changed, 1 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