2
0

Update rubocop to version 1.77.0 (#35128)

This commit is contained in:
Matt Jankowski
2025-06-23 03:40:11 -04:00
committed by GitHub
parent ac039d5f13
commit 8837fd8c54
5 changed files with 8 additions and 8 deletions

View File

@@ -4,6 +4,6 @@ class BackupPolicy < ApplicationPolicy
MIN_AGE = 6.days
def create?
user_signed_in? && current_user.backups.where(created_at: MIN_AGE.ago..).count.zero?
user_signed_in? && current_user.backups.where(created_at: MIN_AGE.ago..).none?
end
end