diff options
| author | mo khan <mo@mokhan.ca> | 2014-05-21 22:18:07 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-05-21 22:18:07 -0600 |
| commit | a1d8ec3d5dbb7a62c7bc45866b2363c749238862 (patch) | |
| tree | d0b5150a6fcfa45875e2829703751f81adbdcbea /app/controllers/my | |
| parent | 5ab3e5c158fcddda38727892708b488b9c423709 (diff) | |
add specs for favorites controller.
Diffstat (limited to 'app/controllers/my')
| -rw-r--r-- | app/controllers/my/favorites_controller.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/my/favorites_controller.rb b/app/controllers/my/favorites_controller.rb index 007775c4..9e4b3a35 100644 --- a/app/controllers/my/favorites_controller.rb +++ b/app/controllers/my/favorites_controller.rb @@ -1,9 +1,7 @@ module My class FavoritesController < BaseController def index - @user = current_user - @favorites = current_user.favorites.includes(:creation) - @creations = @favorites.map {|f| f.creation } + @creations = current_user.favorite_cakes end end end |
