Class: LeanCms::PageContentPolicy::Scope
- Inherits:
-
ApplicationPolicy::Scope
- Object
- ApplicationPolicy::Scope
- LeanCms::PageContentPolicy::Scope
- Defined in:
- app/policies/lean_cms/page_content_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
22 23 24 25 26 27 28 |
# File 'app/policies/lean_cms/page_content_policy.rb', line 22 def resolve if user.can_edit_pages? scope.all else scope.none end end |