Thursday, 26 September 2013

Skip before_filter defined with block

Skip before_filter defined with block

Is it possible to skip a before filter in using skip_before_filter when
the before_filter is defined with a block. For example:
class ApplicationController < ActionController::Base
before_filter do |controller|
# filter stuff
end
end
I know, that is it possible using the "normal" way of defining the filter
with a method name.

No comments:

Post a Comment