Class: Setting::ForemanChef
- Inherits:
-
Setting
- Object
- Setting
- Setting::ForemanChef
- Defined in:
- app/models/setting/foreman_chef.rb
Class Method Summary collapse
Class Method Details
.load_defaults ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/models/setting/foreman_chef.rb', line 3 def self.load_defaults # Check the table exists return unless super self.transaction do [ self.set('auto_deletion', N_("Enable the auto deletion of mapped objects in chef-server through foreman-proxy (currently node and client upon host deletion)"), true), ].each { |s| self.create! s.update(:category => "Setting::ForemanChef")} end true end |