Class: Setting::DefaultHostgroup
- Inherits:
-
Setting
- Object
- Setting
- Setting::DefaultHostgroup
- Defined in:
- app/models/setting/default_hostgroup.rb
Class Method Summary collapse
Class Method Details
.load_defaults ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/models/setting/default_hostgroup.rb', line 4 def self.load_defaults # Check the table exists return unless super Setting.transaction do [ self.set('force_hostgroup_match', 'Apply hostgroup matching even if a host already has one.', false), self.set('force_hostgroup_match_only_new', 'Apply hostgroup matching only on new hosts', true), ].compact.each { |s| self.create s.update(:category => 'Setting::DefaultHostgroup')} end true end |