Yeah, Rails was never really meant to support this use case, so some customizations around the before actions are just really hard. If only we had similar tools for inserting `before_action`s before/after other
before_actions
like we do with the middleware stack.
If there's not a reasonable way to make it work, I would take it as a sign to just add your own API controller that works the way you need and switch over to using that.