Module: Railsmith::Hooks

Defined in:
lib/railsmith/hooks.rb,
lib/railsmith/hooks/dsl.rb,
lib/railsmith/hooks/errors.rb,
lib/railsmith/hooks/runner.rb,
lib/railsmith/hooks/hook_chain.rb,
lib/railsmith/hooks/hook_entry.rb,
lib/railsmith/hooks/hook_registry.rb

Overview

Lifecycle hook infrastructure: before / after / around callbacks on service actions, with conditional execution (if:/unless:), named hooks that can be skipped by subclasses, and global hooks declared via Railsmith.configure.

See Dsl for the public class-level API, or docs/hooks.md for a full guide with examples.

Defined Under Namespace

Modules: Dsl Classes: AroundHookNotYieldedError, Error, HookChain, HookEntry, HookRegistry, Runner