summaryrefslogtreecommitdiff
path: root/app/controllers/my
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-11-01 23:10:59 -0600
committermo khan <mo@mokhan.ca>2014-11-01 23:10:59 -0600
commitef2e067cfb015795bd1e4a07f3c06e23769555b5 (patch)
tree2e70becf646460a4a5beca8dfb0144452c174b4d /app/controllers/my
parentdd111d3a4a91ca16256f11ad9f7d225aaf1d0f01 (diff)
re-arrange my-dashboard.
Diffstat (limited to 'app/controllers/my')
-rw-r--r--app/controllers/my/dashboard_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/my/dashboard_controller.rb b/app/controllers/my/dashboard_controller.rb
index 006a55a7..158dc91c 100644
--- a/app/controllers/my/dashboard_controller.rb
+++ b/app/controllers/my/dashboard_controller.rb
@@ -1,7 +1,8 @@
module My
class DashboardController < BaseController
def index
- @items = (current_user.creations.includes(:photos) + current_user.tutorials).sort_by! { |x| x.created_at }.reverse
+ @cakes = current_user.creations.includes(:photos)
+ @tutorials = current_user.tutorials.limit(10)
@activities = current_user.recent_activities
end
end