Cache and exception safe around_filter (after_filter)


I was wondering if there is a feature or construct in rails that is
guaranteed to run after an action like an around_filter (or
after_filter) but will still run regardless of a broken filter chain or
thrown exception?

Currently I have an around filter setup, and I really require the after
part of the filter to run, although if the filter chain is broken via
cacheing or an exception is throw, the code is skipped.

So for what I need, I’m guessing filters are not what I’m looking for.
So what would I use, or does this ability not really exist yet in rails?


This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs