module Runcobo::Filters

Overview

Filters run around an action's call block:

before authenticate
after record_metrics
skip authenticate # in a subclass

A filter that returns #byebye halts the request: the remaining filters, the call block and, for before filters, the after filters are skipped.

Direct including types

Defined in:

runcobo/actions/filters.cr

Macro Summary

Instance Method Summary

Macro Detail

macro after(method) #

[View source]
macro before(method) #

[View source]
macro skip(method) #

Skips an inherited before or after filter by name.


[View source]

Instance Method Detail

def byebye #

[View source]
def continue #

[View source]