I just saw the deprecation message for enumObj.find_all appear in the Irb environment... DEPRECATION WARNING: find_all is deprecated and will be removed from Rails 2.0 (use find(:all, ...) instead) See http:// www.rubyonrails.org/deprecation for details. I thought find_all was a Ruby method. At least I''ve been using it thinking it was, according to the Ruby documentation... http://www.rubycentral.com/book/ref_m_enumerable.html#Enumerable.find_all Jose --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Russell Norris
2007-Feb-10 14:14 UTC
Re: Why is enumObj.find_all deprecated? It''s a Ruby method.
I think you must be using ActiveRecord#find_all instead there. Rails can''t deprecate Ruby code. If you read the deprecation warning it''s clear that it''s talking about removing find_all from Rails. I ran across some similar confusion with Enumerable#find and just started using Enumerable#select/detect instead which cleared things right up. RSL On 2/10/07, hg <jose-oNoWckAxTcaFhjwBz98joA@public.gmane.org> wrote:> > > I just saw the deprecation message for enumObj.find_all appear in the > Irb environment... > > DEPRECATION WARNING: find_all is deprecated and will be removed from > Rails 2.0 (use find(:all, ...) instead) See http:// > www.rubyonrails.org/deprecation for details. > > I thought find_all was a Ruby method. At least I''ve been using it > thinking it was, according to the Ruby documentation... > > http://www.rubycentral.com/book/ref_m_enumerable.html#Enumerable.find_all > > Jose > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---