Class: Proclaim::ImagePolicy::Scope
- Inherits:
-
Scope
- Object
- Scope
- Proclaim::ImagePolicy::Scope
- Defined in:
- app/policies/proclaim/image_policy.rb
Instance Method Summary collapse
Instance Method Details
#resolve ⇒ Object
20 21 22 23 24 25 26 |
# File 'app/policies/proclaim/image_policy.rb', line 20 def resolve if @user scope.all # Users can access all images else nil end end |