I want to run a single filter in my application.rb file, and then if a
certain condition is true, end the action’s processing immediately.
Right now I’m using prepend_before_filter to ensure that it gets run
first, but some of my around_filters are still being processed. Is
there a way that I can clear out all the filters that should be run?
Basically it’ll look something like this:
class ApplicationController < ActionController::Base
request.filters.clear # This isn’t the right code, I just
don’t know what is
render :text => ‘This site has not been set up yet’
valid_site?'s implementation doesn’t matter obviously…
Also, if I use prepend_before_filter, will it actually run before the
filters set up with around_filter? Perhaps I don’t quite understand
how the filters work exactly. But basically before anything happens,
I want to check for one condition, and then stop processing if that