diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-23 12:10:10 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-23 12:10:10 +0300 |
commit | 611b009e924c25fcc8706b52af90542c4b78f0c0 (patch) | |
tree | 01f1731b71224d4b2e3b427ef7a89f2df0de9f86 /app/models/plan_limits.rb | |
parent | adb8dbff4284689e6902ff455ef74cf84fb79404 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/plan_limits.rb')
-rw-r--r-- | app/models/plan_limits.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/plan_limits.rb b/app/models/plan_limits.rb index bf69f425189..2ce02f9410d 100644 --- a/app/models/plan_limits.rb +++ b/app/models/plan_limits.rb @@ -9,6 +9,8 @@ class PlanLimits < ApplicationRecord belongs_to :plan + validates :notification_limit, numericality: { only_integer: true } + def exceeded?(limit_name, subject, alternate_limit: 0) limit = limit_for(limit_name, alternate_limit: alternate_limit) return false unless limit |