Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-05-23 12:10:10 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-05-23 12:10:10 +0300
commit611b009e924c25fcc8706b52af90542c4b78f0c0 (patch)
tree01f1731b71224d4b2e3b427ef7a89f2df0de9f86 /app/models/plan_limits.rb
parentadb8dbff4284689e6902ff455ef74cf84fb79404 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/plan_limits.rb')
-rw-r--r--app/models/plan_limits.rb2
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