module Sage::Behavior

Direct including types

Defined in:

sage/behavior.cr

Instance Method Summary

Macro Summary

Instance Method Detail

def able?(action : Symbol, object, within : T.class) forall T #

[View source]
def able?(action : Symbol, object) #

[View source]
def sage_user #

[View source]
def unable?(action : Symbol, object, within) #

[View source]
def unable?(action : Symbol, object) #

[View source]
def unauthorized_error_message #

[View source]

Macro Detail

macro authorize!(action, object) #

[View source]
macro authorize!(action, object, within policy_class) #

[View source]
macro policy(object) #

[View source]