1 require File.expand_path('../boot', __FILE__)
3 require File.expand_path('../preinitializer', __FILE__)
5 if STATUS == :database_offline
6 require "action_controller/railtie"
7 require "action_mailer/railtie"
8 require "active_model/railtie"
9 require "sprockets/railtie"
10 require "rails/test_unit/railtie"
15 # Require the gems listed in Gemfile, including any gems
16 # you've limited to :test, :development, or :production.
17 Bundler.require(*Rails.groups)
20 class Application < Rails::Application
21 # Settings in config/environments/* take precedence over those specified here.
22 # Application configuration should go into files in config/initializers
23 # -- all .rb files in that directory are automatically loaded.
25 # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
26 # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
27 # config.time_zone = 'Central Time (US & Canada)'
29 # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
30 # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
31 # config.i18n.default_locale = :de
33 # Custom directories with classes and modules you want to be autoloadable.
34 config.autoload_paths += %W(#{config.root}/lib)
36 # Use SQL instead of Active Record's schema dumper when creating the database.
37 # This is necessary if your schema can't be completely dumped by the schema dumper,
38 # like if you have constraints or database-specific column types
39 unless STATUS == :database_offline
40 config.active_record.schema_format = :sql
43 # Don't eager load models when the database is offline
44 if STATUS == :database_offline
45 config.paths["app/models"].skip_eager_load!