Sha256: a437fbb6b1c951e816115a21a656830895470b4efa90d6a3117acc540629511f

Contents?: true

Size: 479 Bytes

Versions: 7

Compression:

Stored size: 479 Bytes

Contents

Settings::Setting.add do |setting|
  setting.name   = :checkbox
  setting.title  = 'Checkbox setting'
  setting.group  = :general
  setting.type   = 'checkbox'
  setting.values = ['value', 'value1']
end

Settings::Setting.add do |setting|
  setting.name   = :select_multiple
  setting.title  = 'Select multiple setting'
  setting.group  = :general
  setting.type   = 'select_multiple'
  setting.values = {'value' => 'Label', 'value1' => 'Label 1'}
end

Settings::Setting.migrate

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
zen-0.4.3 spec/fixtures/zen/package/settings/controller/settings.rb
zen-0.4.2 spec/fixtures/zen/package/settings/controller/settings.rb
zen-0.4.1 spec/fixtures/zen/package/settings/controller/settings.rb
zen-0.4 spec/fixtures/zen/package/settings/controller/settings.rb
zen-0.3 spec/fixtures/zen/package/settings/controller/settings.rb
zen-0.3b1 spec/fixtures/zen/package/settings/controller/settings.rb
zen-0.3b spec/fixtures/zen/package/settings/controller/settings.rb