Wednesday, December 6, 2006

Ruby on Rails Deprecations Part 2: ActiveRecord

My search of deprecations for ActiveRecord returned a mercifully short list. Here they are:

Deprecated Associations
  • :dependent => true - use :dependent => :destroy
  • :exclusively_dependent - use :dependent => :delete_all
  • push_with_attributes - if associations require attributes, use has_many :through
Deprecated Methods
  • count by conditions or joins - use count(column_name, options)
  • find_all - use find(:all, ...)
  • find_first - use find(:first, ...)
  • human_attribute_name - use .humanize
  • Object-level transactions

1 comment:

AtomicSEO said...

Atomic SEO I really like this blog when I first signed up here i wasn't sure were to post...