summaryrefslogtreecommitdiff
path: root/app/controllers/my
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-05-21 22:09:46 -0600
committermo khan <mo@mokhan.ca>2014-05-21 22:09:46 -0600
commit5ab3e5c158fcddda38727892708b488b9c423709 (patch)
treeaaf3df59dd0043bacad63dd32eba4478e32c4787 /app/controllers/my
parent959bd343e0bae6a06bf1a04c41c58401dea8eec3 (diff)
move favorites to my/favorites.
Diffstat (limited to 'app/controllers/my')
-rw-r--r--app/controllers/my/favorites_controller.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/controllers/my/favorites_controller.rb b/app/controllers/my/favorites_controller.rb
new file mode 100644
index 00000000..007775c4
--- /dev/null
+++ b/app/controllers/my/favorites_controller.rb
@@ -0,0 +1,9 @@
+module My
+ class FavoritesController < BaseController
+ def index
+ @user = current_user
+ @favorites = current_user.favorites.includes(:creation)
+ @creations = @favorites.map {|f| f.creation }
+ end
+ end
+end