Sha256: 3a5caf4ff2083c22b98afe3b83a4a092a590d358371dbc20b4805ad417d80e79

Contents?: true

Size: 474 Bytes

Versions: 3

Compression:

Stored size: 474 Bytes

Contents

module Georgia
  class DashboardController < Georgia::ApplicationController

    def show
      if can?(:approve, Georgia::Revision) or can?(:review, Georgia::Revision)
        @awaiting_revisions = Georgia::Revision.reviews.select{|r| r.revisionable.present?}
      end
      if defined? GeorgiaMailer::Message
        if can?(:index, GeorgiaMailer::Message)
          @messages = GeorgiaMailer::Message.ham.latest.limit(5).decorate
        end
      end
    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
georgia-0.7.8 app/controllers/georgia/dashboard_controller.rb
georgia-0.7.7 app/controllers/georgia/dashboard_controller.rb
georgia-0.7.6 app/controllers/georgia/dashboard_controller.rb