On Monday, September 29, 2014 9:40:24 PM UTC+1, Ruby-Forum.com User wrote:
>
>
> class UserController < BaseController 
>  before_filter :check_auth, :except => [ :getNotifications ] 
>  # more here... 
>  def getNotifications() 
>   getSession() 
>   # ... 
>  end 
> end 
>
>  
This strikes me as odd - I wouldn't usually call a parent controller's 
action explicitly. Either the base controller would implement some non 
action methods that I'd call or I'd call the base controller functionality 
via super. 

Having said that, it was my recollection that filters were handled by 
Action Controller's perform_action so I wouldn't have expected what you saw 
either

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 [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/a63cfb5e-1006-4edb-968b-816b56c300fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to