Sha256: b6c238d355acfb7915aa3622099683121e8a7f9915732ef1b080ac237aadad61

Contents?: true

Size: 519 Bytes

Versions: 5

Compression:

Stored size: 519 Bytes

Contents

class DefaultSettings < ActiveRecord::Migration
  def self.up
    Radiant::Config['reader.allow_registration?'] ||= true
    Radiant::Config['reader.require_confirmation?'] ||= true
    Radiant::Config['site.url'] ||= 'www.example.com'
    Radiant::Config['site.title'] ||= 'Your site name here'
    Radiant::Config['reader.mail_from_name'] ||= "Administrator"
    Radiant::Config['reader.mail_from_address'] ||= "admin@example.com"
    Radiant::Config['reader.layout'] ||= 'undefined'
  end

  def self.down
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
radiant-reader-extension-1.1.1 db/migrate/20100927095703_default_settings.rb
radiant-reader-extension-1.1.0 db/migrate/20100927095703_default_settings.rb
radiant-reader-extension-1.0.1 db/migrate/20100927095703_default_settings.rb
radiant-reader-extension-1.0.0 db/migrate/20100927095703_default_settings.rb
radiant-reader-extension-0.9.2 db/migrate/20100927095703_default_settings.rb