diff options
| author | mo khan <mo@mokhan.ca> | 2014-05-21 22:00:04 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-05-21 22:00:04 -0600 |
| commit | 959bd343e0bae6a06bf1a04c41c58401dea8eec3 (patch) | |
| tree | 740d2a9d30c24c6ae147a998339b6919228b7e22 /app/controllers/my | |
| parent | 802e38c704c8a2534a4d489ff18d14e62460c437 (diff) | |
move dashboard to my/dashboard.
Diffstat (limited to 'app/controllers/my')
| -rw-r--r-- | app/controllers/my/dashboard_controller.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/my/dashboard_controller.rb b/app/controllers/my/dashboard_controller.rb new file mode 100644 index 00000000..53d9a378 --- /dev/null +++ b/app/controllers/my/dashboard_controller.rb @@ -0,0 +1,8 @@ +module My + class DashboardController < BaseController + def index + @items = (current_user.creations + current_user.tutorials).sort_by! { |x| x.created_at }.reverse + @activities = current_user.recent_activities + end + end +end |
