What's New in Edge Rails: Deprecated Finders

Posted by ryan
at 4:50 AM on Thursday, August 17, 2006

Those finder methods that have been marked for deprecation have now been formally deprecated using the nifty deprecation feature recently added to edge Rails. So, if you currently use any one of:

  • find_on_conditions
  • find_first
  • find_all

be prepared to get a little slap on the hand in the form of an error message: Your application calls ActiveRecord::Base##find_XXX, which is now deprecated. Please see the API documents at http://api.rubyonrails.org/ for more information.

Shame on you.

On a related note – using push_with_attributes is also deprecated. Use has_many :through instead.

tags: ,

Comments

Leave a response