Class: ForemanOmaha::OmahaGroup
- Inherits:
-
ApplicationRecord
- Object
- ApplicationRecord
- ForemanOmaha::OmahaGroup
- Includes:
- Authorizable
- Defined in:
- app/models/foreman_omaha/omaha_group.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.humanize_class_name ⇒ Object
7 8 9 |
# File 'app/models/foreman_omaha/omaha_group.rb', line 7 def self.humanize_class_name N_('Omaha Channel') end |
Instance Method Details
#latest_operatingsystem ⇒ Object
28 29 30 31 32 33 34 35 |
# File 'app/models/foreman_omaha/omaha_group.rb', line 28 def case database_adapter_type when :postgresql .reorder('').order('major::text::integer DESC').order('minor::text::float DESC').limit(1).last else .reorder('').order(:major, :minor).last end end |
#operatingsystems ⇒ Object
24 25 26 |
# File 'app/models/foreman_omaha/omaha_group.rb', line 24 def Coreos.where(:release_name => name.downcase) end |