Sha256: 6dc589e7e9108f8db7af9350e12321cec3f3194c30f70879f19e4cd2893d0309

Contents?: true

Size: 462 Bytes

Versions: 2

Compression:

Stored size: 462 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, Georgia::Message)
          @messages = Georgia::Message.ham.latest.limit(5).decorate
        end
      end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
georgia-0.7.5 app/controllers/georgia/dashboard_controller.rb
georgia-0.7.4 app/controllers/georgia/dashboard_controller.rb