Ruby on Rails Tuesday, September 30, 2014

On Tuesday, September 30, 2014 10:23:41 PM UTC+1, Ruby-Forum.com User wrote:
The error is that...

...if I invoke an action on the UserController which is implemented in
its base controller, even if the base controller has a before_filter
excluding auth_check to run for that action it will still be run unless
UserController explicitly excludes the auth_check from running for the
inherited action.

I've been debugging this and can see that the debugger first processes
BaseController.before_filter followed by UserController.before_filter
but I don't know how the filters are stored and chained. I think that is
where the problem is.


That makes more sense and is now sounding like something i'd expect. You might try  using skip_before_filter .

Fred

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/05da5aaa-3cf4-4991-9920-540475803ff9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment