DEV: Apply syntax_tree formatting to app/*

This commit is contained in:
David Taylor
2023-01-09 12:20:10 +00:00
parent a641ce4b62
commit 5a003715d3
696 changed files with 18447 additions and 15481 deletions

View File

@@ -14,9 +14,11 @@ class AssociatedGroup < ActiveRecord::Base
end
def self.cleanup!
AssociatedGroup.left_joins(:group_associated_groups, :user_associated_groups)
AssociatedGroup
.left_joins(:group_associated_groups, :user_associated_groups)
.where("group_associated_groups.id IS NULL AND user_associated_groups.id IS NULL")
.where("last_used < ?", 1.week.ago).delete_all
.where("last_used < ?", 1.week.ago)
.delete_all
end
end