public Method

ClassMethods.before_filters(

Returns all the before filters for this class and all its ancestors. This method returns the actual filter that was assigned in the controller to maintain existing functionality.

Source Code

# File action_controller/filters.rb, line 353
def before_filters #:nodoc:
  filter_chain.select(&:before?).map(&:filter)
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.