rubycas / rubycas-client

Ruby client for Yale's Central Authentication Service protocol -- an open source enterprise single sign on system for web applications.
http://code.google.com/p/rubycas-client/
Other
332 stars 217 forks source link

skip_before_filter doesn't work #86

Open thiyagarajanth opened 9 years ago

thiyagarajanth commented 9 years ago

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 commented 9 years ago

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