Skip to content

Instantly share code, notes, and snippets.

@NickClark
Created December 1, 2010 15:47
Show Gist options
  • Save NickClark/723659 to your computer and use it in GitHub Desktop.
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?
class MyController < ActionController::Base
#What is the rails 3 equivilent?
skip_before_filter filter_chain
end
@dedman
Copy link

dedman commented Apr 20, 2011

Did you ever find an answer to this?

@dedman
Copy link

dedman commented Apr 20, 2011

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.

@grosser
Copy link

grosser commented Jul 13, 2012

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