Hi,
If I understood you correctly, I think that what you are looking for
is before_filter :except || :only
so for example if you have a controller like:
class RestrictedController
before_filter CASClient::Frameworks::Rails::Filter, :except => [:dashboard]
end
and then if you will have
class PageController < RestrictedController
def dashboard
end
end
Then the dashboard action will not be restricted.
You can do opposite thing with using :only => [:dasboard] which means
that it will restrict only dashboard action.
Or you could use:
skip_filter CASClient::Frameworks::Rails::Filter, :only => [:dashboard]
in PageController then you do not need to do anything in RestrictedController
I hope that this will help you solve your problem.
Best regards
> --
> You received this message because you are subscribed to the Google Groups
> "RubyCAS" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
rubycas-serve...@googlegroups.com.
> To post to this group, send email to
rubycas...@googlegroups.com.
> Visit this group at
http://groups.google.com/group/rubycas-server.
> For more options, visit
https://groups.google.com/groups/opt_out.
--
Robert Mitwicki
Senior Software Engineer
FXI Technologies