Class: Setting::Katello
- Inherits:
-
Setting
- Object
- Setting
- Setting::Katello
- Defined in:
- app/models/setting/katello.rb
Class Method Summary collapse
Class Method Details
.load_defaults ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'app/models/setting/katello.rb', line 3 def self.load_defaults return unless (self.table_exists? rescue false) BLANK_ATTRS << "katello_url" Setting.transaction do [ self.set('katello_url', 'url of a Katello instance', 'https://localhost/katello'), ].compact.each { |s| self.create! s.update(:category => "Setting::Katello")} end true end |