Show major or patch version update on menu

This commit is contained in:
KMY 2023-09-21 13:22:10 +09:00
parent fa511c3eab
commit e11be48100
5 changed files with 20 additions and 2 deletions

View file

@ -36,5 +36,13 @@ class SoftwareUpdate < ApplicationRecord
def urgent_pending?
pending_to_a.any?(&:urgent?)
end
def major_pending?
pending_to_a.any?(&:major_type?)
end
def patch_pending?
pending_to_a.any?(&:patch_type?)
end
end
end