From e18fad6c438200e147b0574cb30078d6a987a116 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 18 Mar 2006 20:25:50 +0000 Subject: Update lingering uses of deprecated association dependency options (closes #4169) [coffe2code] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3941 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/associations/association_collection.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib/active_record/associations') diff --git a/activerecord/lib/active_record/associations/association_collection.rb b/activerecord/lib/active_record/associations/association_collection.rb index a66248ff2e..8e249d1b94 100644 --- a/activerecord/lib/active_record/associations/association_collection.rb +++ b/activerecord/lib/active_record/associations/association_collection.rb @@ -62,7 +62,7 @@ module ActiveRecord def clear return self if length.zero? # forces load_target if hasn't happened already - if @reflection.options[:exclusively_dependent] + if @reflection.options[:dependent] && @reflection.options[:dependent] == :delete_all destroy_all else delete_all -- cgit v1.2.3