Class: ProxES::IdentityPolicy::Scope
- Inherits:
-
ApplicationPolicy::Scope
- Object
- ApplicationPolicy::Scope
- ProxES::IdentityPolicy::Scope
- Defined in:
- lib/proxes/policies/identity_policy.rb
Instance Attribute Summary
Attributes inherited from ApplicationPolicy::Scope
Instance Method Summary collapse
Methods inherited from ApplicationPolicy::Scope
Constructor Details
This class inherits a constructor from ProxES::ApplicationPolicy::Scope
Instance Method Details
#resolve ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/proxes/policies/identity_policy.rb', line 16 def resolve if user.super_admin? scope.all else [] end end |