diff options
| author | mo khan <mo@mokhan.ca> | 2014-01-18 23:26:44 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-01-18 23:26:44 -0700 |
| commit | 140f058d047efda322490f3910f486bb49ab1445 (patch) | |
| tree | e18facd235b2e32f6ed9494661d1941c3dfe6482 /app/controllers/admin/activities_controller.rb | |
| parent | 5909a73e78b1b2501c6f732f0c76279c7b1c7f1e (diff) | |
add an admin page to view activity.
Diffstat (limited to 'app/controllers/admin/activities_controller.rb')
| -rw-r--r-- | app/controllers/admin/activities_controller.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/controllers/admin/activities_controller.rb b/app/controllers/admin/activities_controller.rb new file mode 100644 index 00000000..43dece54 --- /dev/null +++ b/app/controllers/admin/activities_controller.rb @@ -0,0 +1,8 @@ +module Admin + class ActivitiesController < AdminController + def index + @recent_activities = Activity.order(:created_at => :desc).limit(100) + expires_in(10.minutes) + end + end +end |
