lib/active_archive/base.rb in active_archive-6.0.0 vs lib/active_archive/base.rb in active_archive-6.0.1

- old
+ new

@@ -81,10 +81,11 @@ def mark_as_unarchived self.archived_at = nil save(validate: false) end + # rubocop:disable Metrics/CyclomaticComplexity def mark_relections_as_archived self.class.reflections.each do |table_name, reflection| next unless dependent_destroy?(reflection) dependents = reflection_dependents(table_name) @@ -98,9 +99,10 @@ end dependents.send(action) end end + # rubocop:enable Metrics/CyclomaticComplexity def mark_relections_as_unarchived self.class.reflections.each do |table_name, reflection| next unless dependent_destroy?(reflection)