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