Show major or patch version update on menu
This commit is contained in:
parent
fa511c3eab
commit
e11be48100
5 changed files with 20 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue