aboutsummaryrefslogtreecommitdiff
path: root/config/application.rb
blob: a5e5b94b03544eb10699fa8cda3d1c8355996202 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
require_relative 'boot'

require 'rails/all'

# TODO Not sure if these are best here
require 'govuk_admin_template'
require 'plek'

require 'web_console' if ENV['RAILS_ENV'] == 'development'
require 'with_advisory_lock'

module GovukMiniEnvironmentAdmin
  class Application < Rails::Application
    # Initialize configuration defaults for originally generated Rails version.
    config.load_defaults 5.1

    # Settings in config/environments/* take precedence over those specified here.
    # Application configuration should go into files in config/initializers
    # -- all .rb files in that directory are automatically loaded.

    config.autoload_paths << "#{Rails.root}/lib"
    config.eager_load_paths << "#{Rails.root}/lib"

    config.active_record.schema_format = :sql
  end
end