Sha256: 06446ff69af6fea7a6fa9dcb12ff4dfd39c2b3f14e16211b996259d6174be509

Contents?: true

Size: 405 Bytes

Versions: 4

Compression:

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

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
georgia-0.7.3 app/controllers/georgia/dashboard_controller.rb
georgia-0.7.2 app/controllers/georgia/dashboard_controller.rb
georgia-0.7.1 app/controllers/georgia/dashboard_controller.rb
georgia-0.7.0 app/controllers/georgia/dashboard_controller.rb