2
0

Add AccountWarning#appeal_eligible? method (#33526)

This commit is contained in:
Matt Jankowski
2025-01-09 10:08:39 -05:00
committed by GitHub
parent 3a4aed9890
commit 54e2030146
6 changed files with 24 additions and 7 deletions

View File

@@ -6,7 +6,7 @@ class AccountWarningPolicy < ApplicationPolicy
end
def appeal?
target? && record.created_at >= Appeal::MAX_STRIKE_AGE.ago
target? && record.appeal_eligible?
end
private