The :dependent option expects either :destroy, :delete_all, or :nullify

For anyone else suffering this issue in their Rails app lately since the upgrade I've traced it to a deprecation in "acts_as_rateable" and "acts_as_taggable" which both use the value "true" for the dependent parameter instead of one of those listed.

The simple 'hack' to fix this is to replace "true" with ":destroy". You'll find the offending lines around here:


./vendor/plugins/acts_as_taggable/lib/acts_as_taggable.rb:17: has_many :taggings, :as => :taggable, :dependent => :destroy
./vendor/plugins/acts_as_rateable/lib/acts_as_rateable.rb:12: has_many :ratings, :as => :rateable, :dependent => :destroy

Blogged with Flock

Tags: , ,

Share and Enjoy:
  • Digg
  • del.icio.us
  • Google
  • BlinkList
  • description
  • Live
  • Ma.gnolia
  • Reddit
  • Slashdot
  • SphereIt
  • StumbleUpon

Related

del.icio.us:The :dependent option expects either :destroy, :delete_all, or :nullify digg:The :dependent option expects either :destroy, :delete_all, or :nullify spurl:The :dependent option expects either :destroy, :delete_all, or :nullify wists:The :dependent option expects either :destroy, :delete_all, or :nullify simpy:The :dependent option expects either :destroy, :delete_all, or :nullify newsvine:The :dependent option expects either :destroy, :delete_all, or :nullify blinklist:The :dependent option expects either :destroy, :delete_all, or :nullify furl:The :dependent option expects either :destroy, :delete_all, or :nullify reddit:The :dependent option expects either :destroy, :delete_all, or :nullify fark:The :dependent option expects either :destroy, :delete_all, or :nullify blogmarks:The :dependent option expects either :destroy, :delete_all, or :nullify Y!:The :dependent option expects either :destroy, :delete_all, or :nullify smarking:The :dependent option expects either :destroy, :delete_all, or :nullify magnolia:The :dependent option expects either :destroy, :delete_all, or :nullify segnalo:The :dependent option expects either :destroy, :delete_all, or :nullify gifttagging:The :dependent option expects either :destroy, :delete_all, or :nullify

Leave a Comment