Alumna::Ruleable
Constants
ALL_METHODS = ServiceMethod.values.reject(&.options?)
READ_METHODS = [ServiceMethod::Find, ServiceMethod::Get]
Explicit method sets - used at boot time only, no runtime cost
WRITE_METHODS = [ServiceMethod::Create, ServiceMethod::Update, ServiceMethod::Patch]
Instance methods
after(on : ServiceMethod | Symbol | Array(ServiceMethod | Symbol) | Nil = nil, &block : RuleContext -> ServiceError | Nil)
Sourcebefore(on : ServiceMethod | Symbol | Array(ServiceMethod | Symbol) | Nil = nil, &block : RuleContext -> ServiceError | Nil)
Sourceerror(on : ServiceMethod | Symbol | Array(ServiceMethod | Symbol) | Nil = nil, &block : RuleContext -> ServiceError | Nil)
Sourcefreeze_rules!
Source