abstract class Sage::Base

Included Modules

Defined in:

sage/base.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from module Sage::Behavior

able?(action : Symbol, object, within : T.class) forall T
able?(action : Symbol, object)
able?
, sage_user sage_user, unable?(action : Symbol, object, within)
unable?(action : Symbol, object)
unable?
, unauthorized_error_message unauthorized_error_message

Constructor Detail

def self.new(user, resource) #

[View source]

Class Method Detail

def self.apply(user, action, resource) #

[View source]

Instance Method Detail

def allow! #

[View source]
def apply(action) #

[View source]
def check_policy(action) #

[View source]
def default_ability #

[View source]
def disallow! #

[View source]
def find_action_name(action) #

[View source]
def perform_pre_check #

[View source]
def sage_user #

[View source]
abstract def user #

[View source]