Forum: Ruby on Rails Why is enumObj.find_all deprecated? It's a Ruby method.

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
5201e306c37562746a8cdeebe24bef32?d=identicon&s=25 Jose Hales-Garcia (jose)
on 2007-02-10 15:12
(Received via mailing list)
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.h...

Jose
70225136eacd3d870f64e03bff678655?d=identicon&s=25 Russell Norris (Guest)
on 2007-02-10 15:16
(Received via mailing list)
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
This topic is locked and can not be replied to.