From 8a1c5337808c53c5e9d2d842a09a90599c497e89 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Thu, 6 Jan 2011 15:15:36 -0800 Subject: no need for self --- activerecord/lib/active_record/associations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/associations.rb b/activerecord/lib/active_record/associations.rb index bbf96f52ed..f6a7fd3ca0 100644 --- a/activerecord/lib/active_record/associations.rb +++ b/activerecord/lib/active_record/associations.rb @@ -134,7 +134,7 @@ module ActiveRecord def clear_association_cache #:nodoc: self.class.reflect_on_all_associations.to_a.each do |assoc| instance_variable_set "@#{assoc.name}", nil - end if self.persisted? + end if persisted? end private -- cgit v1.2.3