Forum: Ruby on Rails cache and exception safe around_filter (after_filter)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Andrew (Guest)
on 2006-03-21 05:26
Hi,

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?

Thanks,
Andrew
This topic is locked and can not be replied to.