Skip to main content

before_action

Attribute Macro before_action 

Source
#[before_action]
Expand description

Registers a before-action filter on the following action method. Usage: #[before_action(fn_name)] or #[before_action(fn_name, only = [action1, action2])]