Revert "Upstream 20240517"
This commit is contained in:
parent
9c006fd893
commit
f6dec44e95
2347 changed files with 26470 additions and 87494 deletions
|
@ -16,7 +16,7 @@
|
|||
class SoftwareUpdate < ApplicationRecord
|
||||
self.inheritance_column = nil
|
||||
|
||||
enum :type, { patch: 0, minor: 1, major: 2 }, suffix: :type
|
||||
enum type: { patch: 0, minor: 1, major: 2 }, _suffix: :type
|
||||
|
||||
def gem_version
|
||||
Gem::Version.new(version)
|
||||
|
@ -36,13 +36,5 @@ 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