Sha256: 4760d37bab7afdffcd0d010c207650d324dceb7d5a4bc207290bf5f8373146b2

Contents?: true

Size: 570 Bytes

Versions: 2

Compression:

Stored size: 570 Bytes

Contents

module Cambium
  class Configuration

    attr_accessor :app_title,
                  :cache_pages,
                  :development_url,
                  :production_url

    def initialize
      @app_title            = 'Cambium'
      @cache_pages          = false
      @development_url      = 'localhost:3000'
      @production_url       = 'example.com'
    end

  end

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.configuration=(config)
    @configuration = config
  end

  def self.configure
    yield configuration
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cambium-1.3.2 lib/cambium/configuration.rb
cambium-1.3.1 lib/cambium/configuration.rb