Sha256: b56419a6ab875a579e5c2d028ebdd881deedfcf75ce5c68b71695beaa860641c

Contents?: true

Size: 650 Bytes

Versions: 6

Compression:

Stored size: 650 Bytes

Contents

require 'aerogel/configurator'

module Aerogel::Config

  # Configures application.
  #
  def self.registered(app)
    app.set :root, Aerogel.application_path
    app.set :views, Aerogel.get_resource_paths( :views ).reverse
    app.set :erb, layout: "layouts/application.html".to_sym

    require 'sinatra/reloader' if app.development?
    app.configure :development do
      app.register Sinatra::Reloader
    end

    # Load configs
    app.set :config, Configurator.new
    Aerogel.get_resource_list( :config, '*.conf', app.environment ).each do |config_filename|
      app.config.load config_filename
    end

  end
end # module Aerogel::Config

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
aerogel-core-1.1.0 lib/aerogel/core/config.rb
aerogel-core-1.0.4 lib/aerogel-core/config.rb
aerogel-core-1.0.3 lib/aerogel-core/config.rb
aerogel-core-1.0.2 lib/aerogel-core/config.rb
aerogel-core-1.0.1 lib/aerogel-core/config.rb
aerogel-core-1.0.0 lib/aerogel-core/config.rb