require "georgia/version"
require "georgia/paths"
require "georgia/engine"
require "georgia/uploader/adapter"
require "georgia/permissions"

module Georgia

  mattr_accessor :templates
  @@templates = %w(default one-column sidebar-left sidebar-right)

  mattr_accessor :title
  @@title = "Georgia"

  mattr_accessor :url
  @@url = "http://www.example.com"

  mattr_accessor :navigation
  @@navigation = %w(dashboard pages media navigation widgets)

  mattr_accessor :storage
  @@storage = :file

  mattr_accessor :permissions
  @@permissions = Georgia::Permissions::DEFAULT_PERMISSIONS

  def self.setup
    yield self
  end

  class << self
    alias :header :navigation

    def header= value
      ActiveSupport::Deprecation.warn("config.header is deprecated, use config.navigation instead.", caller)
    end
    def indexer= value
      ActiveSupport::Deprecation.warn("config.indexer is deprecated, we jumped on the ElasticSearch train.", caller)
    end
  end

end
require "georgia/version"
require "georgia/paths"
require "georgia/engine"
require "georgia/uploader/adapter"
require "georgia/permissions"

module Georgia

  mattr_accessor :templates
  @@templates = %w(default one-column sidebar-left sidebar-right)

  mattr_accessor :title
  @@title = "Georgia"

  mattr_accessor :url
  @@url = "http://www.example.com"

  mattr_accessor :navigation
  @@navigation = %w(dashboard pages media navigation widgets)

  mattr_accessor :storage
  @@storage = :file

  mattr_accessor :permissions
  @@permissions = Georgia::Permissions::DEFAULT_PERMISSIONS

  mattr_accessor :roles
  @@roles = %w(admin editor contributor guest)

  def self.setup
    yield self
  end

  class << self
    alias :header :navigation

    def header= value
      ActiveSupport::Deprecation.warn("config.header is deprecated, use config.navigation instead.", caller)
    end
    def indexer= value
      ActiveSupport::Deprecation.warn("config.indexer is deprecated, we jumped on the ElasticSearch train.", caller)
    end
  end

end
Add Georgia.roles with default roles
Add Georgia.roles with default roles
