Sha256: 42760c7fb98134c498f2e3c21d8b64efb973abcbc5d0d896a22a9a8865ea88d4
Contents?: true
Size: 297 Bytes
Versions: 3
Compression:
Stored size: 297 Bytes
Contents
class PageImagePolicy < Policy module Collection def index? true end def reorder? user.role?(:pages) end def new? user.role?(:pages) end end module Member def show? true end def edit? user.role?(:pages) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pages_core-3.4.3 | app/policies/page_image_policy.rb |
pages_core-3.5.1 | app/policies/page_image_policy.rb |
pages_core-3.4.2 | app/policies/page_image_policy.rb |