require_relative "boot"

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

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)

module App
  class Application < Rails::Application
    config.load_defaults 7.2
    config.autoload_lib(ignore: %w[assets tasks])
    config.api_only = false
    config.active_job.queue_adapter = :sidekiq
    config.time_zone = "Europe/Rome"
    config.i18n.default_locale = :it
    config.i18n.available_locales = %i[it en]
    config.i18n.fallbacks = { it: %i[it en], en: %i[en it] }
    config.generators { |g| g.orm :active_record, primary_key_type: :uuid }
  end
end
