Class: Proclaim::SubscriptionPolicy::Scope
- Inherits:
-
Scope
- Object
- Scope
- Proclaim::SubscriptionPolicy::Scope
- Defined in:
- app/policies/proclaim/subscription_policy.rb
Instance Method Summary collapse
Instance Method Details
#resolve ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'app/policies/proclaim/subscription_policy.rb', line 26 def resolve if @user scope.all # Users can access all subscriptions else # Guests can see none scope.none end end |