diff options
| author | mo khan <mo@mokhan.ca> | 2014-08-26 21:09:02 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-08-26 21:09:02 -0600 |
| commit | 056d6f669f67144f8c1d78a0d87eb23d753ae408 (patch) | |
| tree | 3479b93118a7c33ebe841d1fd81ca438d359eb7f /app/controllers/my | |
| parent | 272f127eb5361b0b5e35ae244d4a266e48fc6faf (diff) | |
| parent | 81cabbd4c80c7ee430ab0d2a87f235a58a2e8ea4 (diff) | |
merge with master.
Diffstat (limited to 'app/controllers/my')
| -rw-r--r-- | app/controllers/my/base_controller.rb | 2 | ||||
| -rw-r--r-- | app/controllers/my/dashboard_controller.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/my/base_controller.rb b/app/controllers/my/base_controller.rb index 3a0e1335..ce525473 100644 --- a/app/controllers/my/base_controller.rb +++ b/app/controllers/my/base_controller.rb @@ -1,5 +1,5 @@ module My class BaseController < ApplicationController - before_filter :authenticate_user! + before_filter :authenticate! end end diff --git a/app/controllers/my/dashboard_controller.rb b/app/controllers/my/dashboard_controller.rb index 53d9a378..006a55a7 100644 --- a/app/controllers/my/dashboard_controller.rb +++ b/app/controllers/my/dashboard_controller.rb @@ -1,7 +1,7 @@ module My class DashboardController < BaseController def index - @items = (current_user.creations + current_user.tutorials).sort_by! { |x| x.created_at }.reverse + @items = (current_user.creations.includes(:photos) + current_user.tutorials).sort_by! { |x| x.created_at }.reverse @activities = current_user.recent_activities end end |
