require File.expand_path('../boot', __FILE__)

# Pick the frameworks you want:
require "active_record/railtie"
require "active_storage/engine"
require "action_controller/railtie"
require "action_view/railtie"
require "action_mailer/railtie"
require "active_job/railtie"
require "action_cable/engine"
#require "rails/test_unit/railtie"
require "sprockets/railtie"

Bundler.require(*Rails.groups)
require "dunlop"

module Dummy
  class Application < Rails::Application
    config.file_storage_path = Rails.root.join('files') # source file storage
    config.working_path = '/tmp' # source file processing directory

    config.application_name = 'Dunlop'

    config.git_version = nil
    config.git_version = File.read('REVISION').strip if File.exists?('REVISION')
    config.git_version = File.read('OFFLINE_REVISION').strip if File.exists?('OFFLINE_REVISION')

    config.file_storage_path = Rails.root.join('files') # source file storage
    config.working_path = '/tmp' # source file processing directory

    config.time_zone = 'Moscow'
    # 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.

    # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
    # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
    # config.time_zone = 'Central Time (US & Canada)'

    # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
    # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
    config.i18n.default_locale = :nl
  end
end

