I had a model called filter defined in an ancient version of rails (about 1 yr old). Now I upgrade to 2.2.2 and see that all my references to Filter resolve to ActionController::Filters::Filter and that gives all kinds of errors because ruby tries to search for the model methods in the ActionController filter module.. Is there a way to fix this without changing my code? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Frederick Cheung
2008-Dec-17 20:23 UTC
Re: How to overcome ActionController::Filters::Filter ??
On 17 Dec 2008, at 20:04, Vivek wrote:> > I had a model called filter defined in an ancient version of rails > (about 1 yr old). Now I upgrade to 2.2.2 and see that all my > references to Filter resolve to > ActionController::Filters::Filter and that gives all kinds of errors > because ruby tries to search for the model methods in the > ActionController filter module.. > Is there a way to fix this without changing my code? >In your controllers write ::Filter instead of Filter. Fred> > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---