Sha256: 6d4bfcf213344fffef4f31f8b6280c3b38a48a2a4850f79e89abb9853b3fca88

Contents?: true

Size: 461 Bytes

Versions: 2

Compression:

Stored size: 461 Bytes

Contents

class Setting::RhCloud < Setting
  def self.load_defaults
    return unless ActiveRecord::Base.connection.table_exists?('settings')
    return unless super

    transaction do
      [
        set('allow_auto_inventory_upload', N_('Allow automatic upload of the host inventory to the Red Hat cloud'), true),
      ].each { |s| create! s.update(:category => 'Setting::RhCloud')}
    end

    true
  end

  def self.humanized_category
    N_('RH Cloud')
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
foreman_rh_cloud-0.9.6 app/models/setting/rh_cloud.rb
foreman_rh_cloud-0.9.5 app/models/setting/rh_cloud.rb