summaryrefslogtreecommitdiff
path: root/app/controllers/my
diff options
context:
space:
mode:
authormo <mo.khan@gmail.com>2017-10-07 15:33:33 -0600
committermo <mo.khan@gmail.com>2017-10-07 15:33:33 -0600
commit0a40d930732ee933c9bd6acd5aca21cae8e26717 (patch)
tree3814f9d7b6c245e064161c4a901e5ed9a22e31a2 /app/controllers/my
parent6e36c75f480be84dc904a2e37dffb3642cc95356 (diff)
load all collections using backbone_collection_for helper.HEADmaster
Diffstat (limited to 'app/controllers/my')
-rw-r--r--app/controllers/my/kitchens_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/my/kitchens_controller.rb b/app/controllers/my/kitchens_controller.rb
index 54f36e1c..bb7a806a 100644
--- a/app/controllers/my/kitchens_controller.rb
+++ b/app/controllers/my/kitchens_controller.rb
@@ -2,8 +2,9 @@ module My
class KitchensController < BaseController
def show
@tags = Tag.unique_tags
- #@cakes = current_user.creations.includes(:category, :photos, :tags, :tag_taggings)
+ @cakes = current_user.creations.includes(:category, :photos, :tags, :tag_taggings)
@tutorials = current_user.tutorials.includes(:tags, :tag_taggings)
+ @photos = Photo.where(imageable: @cakes)
end
end
end