Sha256: 2b1d4aa0d4bb7b8d5025d3a5d890fbb40c2c2e55d6679ed8a22ed84f45bfdc1c

Contents?: true

Size: 386 Bytes

Versions: 13

Compression:

Stored size: 386 Bytes

Contents

class Setting::ForemanTasks < Setting

  def self.load_defaults
    # Check the table exists
    return unless super

    self.transaction do
      [
          self.set('dynflow_enable_console', N_("Enable the dynflow console (/foreman_tasks/dynflow) for debugging"), false),
      ].each { |s| self.create! s.update(:category => "Setting::ForemanTasks")}
    end

    true

  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
foreman-tasks-0.6.7 app/models/setting/foreman_tasks.rb
foreman-tasks-0.6.6 app/models/setting/foreman_tasks.rb
foreman-tasks-0.6.5 app/models/setting/foreman_tasks.rb
foreman-tasks-0.6.4 app/models/setting/foreman_tasks.rb
foreman-tasks-0.6.3 app/models/setting/foreman_tasks.rb
foreman-tasks-0.6.2 app/models/setting/foreman_tasks.rb
foreman-tasks-0.6.1 app/models/setting/foreman_tasks.rb
foreman-tasks-0.6.0 app/models/setting/foreman_tasks.rb
foreman-tasks-0.5.7 app/models/setting/foreman_tasks.rb
foreman-tasks-0.5.6 app/models/setting/foreman_tasks.rb
foreman-tasks-0.5.5 app/models/setting/foreman_tasks.rb
foreman-tasks-0.5.4 app/models/setting/foreman_tasks.rb
foreman-tasks-0.5.3 app/models/setting/foreman_tasks.rb