Class: Georgia::DashboardController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Georgia::DashboardController
- Defined in:
- app/controllers/georgia/dashboard_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
#current_ability, #current_locale
Instance Method Details
#show ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'app/controllers/georgia/dashboard_controller.rb', line 4 def show Georgia::Dashboard @activities = PublicActivity::Activity.order(created_at: :desc).page(params[:page]).per(20) @awaiting_revisions = Georgia::Revision.where("status = ?", Georgia::Revision.statuses[:review]) if defined? Georgia::Mailer::Message and policy(Georgia::Mailer::Message).index? @messages = Georgia::Mailer::Message.ham.latest.limit(5).decorate end end |