Sha256: 56aea5c3cf4a1c2beff6870ee1de9a7e85f3f3145251c0104c2cedd170adff8d
Contents?: true
Size: 514 Bytes
Versions: 5
Compression:
Stored size: 514 Bytes
Contents
# frozen_string_literal: true module Archangel ## # Site policy # class SitePolicy < ApplicationPolicy ## # Check if `#update` action is authorized for current user. Based on if # current user has the "admin" role # # @return [Boolean] if action is authorized # def update? admin_user? end ## # Check if `#sample` action is authorized for current user. # # @return [Boolean] if action is authorized # def sample? true end end end
Version data entries
5 entries across 5 versions & 1 rubygems