Class: LeanCms::PostPolicy::Scope
- Inherits:
-
ApplicationPolicy::Scope
- Object
- ApplicationPolicy::Scope
- LeanCms::PostPolicy::Scope
- Defined in:
- app/policies/lean_cms/post_policy.rb
Instance Method Summary collapse
Methods inherited from ApplicationPolicy::Scope
Constructor Details
This class inherits a constructor from LeanCms::ApplicationPolicy::Scope
Instance Method Details
#resolve ⇒ Object
28 29 30 31 32 33 34 |
# File 'app/policies/lean_cms/post_policy.rb', line 28 def resolve if user.can_edit_blog? scope.all else scope.none end end |