1 # frozen_string_literal: true
 
   3 require_relative "boot"
 
   7 # Require the gems listed in Gemfile, including any gems
 
   8 # you've limited to :test, :development, or :production.
 
   9 Bundler.require(*Rails.groups)
 
  12   class Application < Rails::Application
 
  13     # Initialize configuration defaults for originally generated Rails version.
 
  14     config.load_defaults 8.0
 
  16     # Please, add to the `ignore` list any other `lib` subdirectories that do
 
  17     # not contain `.rb` files, or that should not be reloaded or eager loaded.
 
  18     # Common ones are `templates`, `generators`, or `middleware`, for example.
 
  19     config.autoload_lib(:ignore => %w[assets tasks])
 
  21     # Configuration for the application, engines, and railties goes here.
 
  23     # These settings can be overridden in specific environments using the files
 
  24     # in config/environments, which are processed later.
 
  26     # config.time_zone = "Central Time (US & Canada)"
 
  27     # config.eager_load_paths << Rails.root.join("extras")
 
  29     # Use SQL instead of Active Record's schema dumper when creating the database.
 
  30     # This is necessary if your schema can't be completely dumped by the schema dumper,
 
  31     # like if you have constraints or database-specific column types
 
  32     config.active_record.schema_format = :sql unless Settings.status == "database_offline"
 
  34     # Use memcached for caching if required
 
  35     config.cache_store = :mem_cache_store, Settings.memcache_servers, { :namespace => "rails:cache" } if Settings.key?(:memcache_servers)
 
  37     # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
 
  38     # the I18n.default_locale when a translation cannot be found).
 
  39     config.i18n.fallbacks = true
 
  40     # Enables custom error message formats
 
  41     config.active_model.i18n_customize_full_message = true