Sha256: 236a02dc9c285caf9df4eb81d64e5fef1241350de78f7bd8357c9ba71492e31e
Contents?: true
Size: 630 Bytes
Versions: 3
Compression:
Stored size: 630 Bytes
Contents
require "clubhouse/concerns/policies/ownable" module Clubhouse module Concerns module Policies module InvitationPolicy extend ActiveSupport::Concern include Ownable def index? admin? end def create? admin? end def show? admin? end def update? admin? end def destroy? admin? end def permitted_attributes if resource.new_record? [:email, :admin] else [:admin] end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems