Sha256: 904725ee9245c55093a57b00e2e06e73c1823f8d5122ccf586338fb5eb3a2f50

Contents?: true

Size: 581 Bytes

Versions: 7

Compression:

Stored size: 581 Bytes

Contents

Settings::SettingsGroup.add do |group|
  group.title = 'users.tabs.settings'
  group.name  = :users
end

Settings::Setting.add do |setting|
  setting.title       = 'users.labels.allow_registration'
  setting.description = 'users.descriptions.allow_registration'
  setting.name        = :allow_registration
  setting.group       = :users
  setting.default     = '0'
  setting.type        = 'radio'
  setting.values      = lambda do
    return {
      lang('zen_general.special.boolean_hash.true')  => '1',
      lang('zen_general.special.boolean_hash.false') => '0'
    }
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
zen-0.4.3 lib/zen/package/users/lib/users/settings.rb
zen-0.4.2 lib/zen/package/users/lib/users/settings.rb
zen-0.4.1 lib/zen/package/users/lib/users/settings.rb
zen-0.4 lib/zen/package/users/lib/users/settings.rb
zen-0.3 lib/zen/package/users/lib/users/settings.rb
zen-0.3b1 lib/zen/package/users/lib/users/settings.rb
zen-0.3b lib/zen/package/users/lib/users/settings.rb