Class: ProblemPolicy::Scope
- Inherits:
-
ApplicationPolicy::Scope
- Object
- ApplicationPolicy::Scope
- ProblemPolicy::Scope
- Defined in:
- app/policies/problem_policy.rb
Instance Method Summary collapse
Methods inherited from ApplicationPolicy::Scope
Constructor Details
This class inherits a constructor from ApplicationPolicy::Scope
Instance Method Details
#resolve ⇒ Object
18 19 20 |
# File 'app/policies/problem_policy.rb', line 18 def resolve @user.is_moderator? ? scope : scope.none end |