diff options
| author | mo <mo.khan@gmail.com> | 2017-10-07 15:33:33 -0600 |
|---|---|---|
| committer | mo <mo.khan@gmail.com> | 2017-10-07 15:33:33 -0600 |
| commit | 0a40d930732ee933c9bd6acd5aca21cae8e26717 (patch) | |
| tree | 3814f9d7b6c245e064161c4a901e5ed9a22e31a2 /app/controllers/my/kitchens_controller.rb | |
| parent | 6e36c75f480be84dc904a2e37dffb3642cc95356 (diff) | |
Diffstat (limited to 'app/controllers/my/kitchens_controller.rb')
| -rw-r--r-- | app/controllers/my/kitchens_controller.rb | 3 |
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 |
