Sha256: 914b68d8f83b24b91185423c6d28322857abdd126631668111ac9eb0ec0b6f03
Contents?: true
Size: 438 Bytes
Versions: 1
Compression:
Stored size: 438 Bytes
Contents
module Georgia class DashboardPolicy < ApplicationPolicy def show? true end class Scope < Struct.new(:user, :scope) def resolve revision_policy = Georgia::RevisionPolicy.new(current_user, Georgia::Revision) if revision_policy.approve? or revision_policy.review? scope.review.select{|r| r.revisionable.present?} else scope.none end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
georgia-0.8.0 | app/policies/georgia/dashboard_policy.rb |