Why is enumObj.find_all deprecated? It's a Ruby method.

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

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