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