Sha256: 3801c8db7216c1817a1b79ec56ecf9be3b746c23fc4880ab8ae3ed11e57fce1d

Contents?: true

Size: 1.14 KB

Versions: 4

Compression:

Stored size: 1.14 KB

Contents

Radiant.config do |config|
  config.namespace('reader') do |reader|
    reader.define 'allow_registration?', :default => true
    reader.define 'require_confirmation?', :default => true
    reader.define 'layout', :select_from => lambda { Layout.all.map(&:name) }, :allow_blank => false
    reader.define 'get_profile?', :default => true
    reader.define 'public?', :default => false
    reader.define 'directory_visibility', :select_from => %w{public private grouped none}, :allow_blank => false, :default => 'private'
    reader.define 'share_details?', :default => false
    reader.define 'profiles_path', :default => "directory"
    reader.define 'preferences_path', :default => "account"
    reader.define 'login_to', :default => "dashboard"
    reader.define 'show_honorifics?', :default => false
    reader.define 'show_descriptions?', :default => false
    reader.define 'show_dobs?', :default => false
  end
  config.namespace('email') do |email|
    email.define 'layout', :select_from => lambda { Layout.all.map(&:name) }, :allow_blank => true
    email.define 'name', :allow_blank => false
    email.define 'address', :allow_blank => false
  end
end 

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
radiant-reader-extension-3.0.38 config/initializers/radiant_config.rb
radiant-reader-extension-3.0.37 config/initializers/radiant_config.rb
radiant-reader-extension-3.0.36 config/initializers/radiant_config.rb
radiant-reader-extension-3.0.35 config/initializers/radiant_config.rb