From 372e809667b37f11e232a762815211601859b8b5 Mon Sep 17 00:00:00 2001 From: Paul Nikitochkin Date: Mon, 15 Jul 2013 14:07:33 +0300 Subject: Do not re-save destroyed association on saving parent object Closes #11450 --- activerecord/lib/active_record/autosave_association.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/lib/active_record/autosave_association.rb') diff --git a/activerecord/lib/active_record/autosave_association.rb b/activerecord/lib/active_record/autosave_association.rb index a8a1847554..c991c870ed 100644 --- a/activerecord/lib/active_record/autosave_association.rb +++ b/activerecord/lib/active_record/autosave_association.rb @@ -343,6 +343,7 @@ module ActiveRecord end records.each do |record| + next if record.destroyed? saved = true -- cgit v1.2.3