Sha256: bff8be4fcb17e688be06045338814d3a53f7beaac797d82459659e65549599cd

Contents?: true

Size: 679 Bytes

Versions: 2

Compression:

Stored size: 679 Bytes

Contents

require 'devise'
require "optimacms/engine"
require "optimacms/configuration"

module Optimacms
  class << self
    attr_accessor :config
  end

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

  def self.reset
    @config = Configuration.new
  end

  def self.configure
    yield(config) if block_given?
  end


  # OLD. will be removed in new versions
=begin
  #
  mattr_accessor :files_dir_path
  def files_dir_path
    @@files_dir_path || 'uploads'
  end


  #
  mattr_accessor :main_namespace
  def main_namespace
    @@main_namespace || ''
  end


  #
  mattr_accessor :admin_namespace
  def admin_namespace
    @@admin_namespace || 'admin'
  end

=end



end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
optimacms-0.4.3 lib/optimacms.rb
optimacms-0.4.2 lib/optimacms.rb