Sha256: b0950dee2b2859f9a16c03e7780f463c4ac038d0eb574d8cd7f7b0a911dccb4d

Contents?: true

Size: 515 Bytes

Versions: 1

Compression:

Stored size: 515 Bytes

Contents

module Georgia
  class DashboardController < Georgia::ApplicationController

    def show
      authorize 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

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
georgia-0.8.0 app/controllers/georgia/dashboard_controller.rb