Write Software Well · Jun 17, 2025
How to Inspect the Sequence of Controller Callbacks in Rails
0Sign in to vote or save
This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
This post shows how to inspect the sequence of before, after, and around callbacks in Rails controllers by adding a small initializer. Useful for understanding callback order in applications with complex controller hierarchies or shared concerns. I learned this trick while reading the Rails tests.
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.