Sha256: 67e9ea6d1c394f22d526e7e336c9e0200e17fa51af45efa6382320308e5547d4

Contents?: true

Size: 624 Bytes

Versions: 12

Compression:

Stored size: 624 Bytes

Contents

class ConfigDataset < Dataset::Base
  def load
    # Simulates the defaults on bootstrapped Radiant instances
    Radiant::Config['admin.title'] = 'Radiant CMS' 
    Radiant::Config['admin.subtitle'] = 'Publishing for Small Teams'
    Radiant::Config['defaults.page.parts'] = 'body, extended'
    Radiant::Config['defaults.page.status'] = 'Draft'
    Radiant::Config['defaults.page.filter'] = nil
    Radiant::Config['defaults.page.fields'] = 'Keywords, Description'
    Radiant::Config['defaults.snippet.filter'] = nil
    Radiant::Config['session_timeout'] = 2.weeks
    Radiant::Config['default_locale'] = 'en'
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
radiant-1.1.4 spec/datasets/config_dataset.rb
radiant-1.1.3 spec/datasets/config_dataset.rb
radiant-1.1.2 spec/datasets/config_dataset.rb
radiant-1.1.1 spec/datasets/config_dataset.rb
radiant-1.1.0 spec/datasets/config_dataset.rb
radiant-1.1.0.rc1 spec/datasets/config_dataset.rb
radiant-1.1.0.beta spec/datasets/config_dataset.rb
radiant-1.0.1 spec/datasets/config_dataset.rb
radiant-1.1.0.alpha spec/datasets/config_dataset.rb
radiant-1.0.0 spec/datasets/config_dataset.rb
radiant-1.0.0.rc5 spec/datasets/config_dataset.rb
radiant-1.0.0.rc4 spec/datasets/config_dataset.rb