Created
December 1, 2010 15:47
-
-
Save NickClark/723659 to your computer and use it in GitHub Desktop.
skip_before_filter(filter_chain) is used in older rails 2 app. What would the rails 3 equiv be?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyController < ActionController::Base | |
#What is the rails 3 equivilent? | |
skip_before_filter filter_chain | |
end |
One workaround I just found was to make your controller inherit from ActionController::Base instead of ApplicationController, we have most of our filters setup in app controller.
skip_before_filter _process_action_callbacks.map(&*:filter)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Did you ever find an answer to this?