Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip_before_filter doesn't work #86

Open
thiyagarajanth opened this issue Jan 2, 2015 · 1 comment
Open

skip_before_filter doesn't work #86

thiyagarajanth opened this issue Jan 2, 2015 · 1 comment

Comments

@thiyagarajanth
Copy link

class ApplicationController < ActionController::Base
before_filter CASClient::Frameworks::Rails::Filter
end

class MyController < ApplicationController
before_filter CASClient::Frameworks::Rails::Filter, :except => :index

def index
# But here before_filter is triggered !
end
end

above code i want to skip the index action but it does't work what to do?

@lingzhuzi
Copy link

try:
class ApplicationController < ActionController::Base
before_filter :sso_filter

private
def sso_filter
CASClient::Frameworks::Rails::Filter.filter(self)
end
end

class MyController < ApplicationController
before_filter :sso_filter, :except => :index

def index

end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants