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
Related











Leave a Comment