Sha256: f8fb8cac06f7db1d0ad501f44241244cd98672b5bbc0f798a08383570e355f7a

Contents?: true

Size: 539 Bytes

Versions: 6

Compression:

Stored size: 539 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"), true),
          self.set('dynflow_console_require_auth', N_("Require user to be authenticated as user with admin rights when accessing dynflow console"), true)
      ].each { |s| self.create! s.update(:category => "Setting::ForemanTasks")}
    end

    true

  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
foreman-tasks-0.6.13 app/models/setting/foreman_tasks.rb
foreman-tasks-0.6.12 app/models/setting/foreman_tasks.rb
foreman-tasks-0.6.11 app/models/setting/foreman_tasks.rb
foreman-tasks-0.6.10 app/models/setting/foreman_tasks.rb
foreman-tasks-0.6.9 app/models/setting/foreman_tasks.rb
foreman-tasks-0.6.8 app/models/setting/foreman_tasks.rb