Skip to content

Commit 8a1c533

Browse files
committed
no need for self
1 parent 7773c32 commit 8a1c533

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/associations.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ module Associations # :nodoc:
134134
def clear_association_cache #:nodoc:
135135
self.class.reflect_on_all_associations.to_a.each do |assoc|
136136
instance_variable_set "@#{assoc.name}", nil
137-
end if self.persisted?
137+
end if persisted?
138138
end
139139

140140
private

0 commit comments

Comments
 (0)