Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/permanent_records.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def set_deleted_at(value, force = nil)
end

def each_counter_cache
_reflections.each do |name, reflection|
PermanentRecords.dependent_permanent_reflections(self.class).each do |name, reflection|
association = send(name.to_sym)
next if association.nil?
next unless reflection.belongs_to? && reflection.counter_cache_column
Expand Down