struct

Noir::CanCanAbility::Rule

Inherits Struct < Value < Object

conditioned: the rule carries hash or block conditions; on_user: those conditions read the caller.

Constructors

new(actions : Array(String), subjects : Array(String), grant : Grant, allows : Bool, conditioned : Bool = false, on_user : Bool = false)
Source

Instance methods

actions
allows
clone
Source
conditioned
copy_with(actions _actions = @actions, subjects _subjects = @subjects, grant _grant = @grant, allows _allows = @allows, conditioned _conditioned = @conditioned, on_user _on_user = @on_user)
Source
grant
on_user
subjects