2024-05-05 06:03:25 -04:00
|
|
|
# frozen_string_literal: true
|
2022-04-06 14:46:10 -04:00
|
|
|
|
2024-05-05 06:03:25 -04:00
|
|
|
require_relative 'boot'
|
|
|
|
|
|
|
|
|
|
require 'rails/all'
|
2022-04-06 14:46:10 -04:00
|
|
|
|
|
|
|
|
# Require the gems listed in Gemfile, including any gems
|
|
|
|
|
# you've limited to :test, :development, or :production.
|
|
|
|
|
Bundler.require(*Rails.groups)
|
|
|
|
|
|
2024-03-15 17:28:54 -04:00
|
|
|
module Dawarich
|
2022-04-06 14:46:10 -04:00
|
|
|
class Application < Rails::Application
|
|
|
|
|
# Initialize configuration defaults for originally generated Rails version.
|
2024-12-17 06:56:21 -05:00
|
|
|
config.load_defaults 8.0
|
2022-04-06 14:46:10 -04:00
|
|
|
|
2023-10-21 06:43:31 -04:00
|
|
|
# Please, add to the `ignore` list any other `lib` subdirectories that do
|
|
|
|
|
# not contain `.rb` files, or that should not be reloaded or eager loaded.
|
|
|
|
|
# Common ones are `templates`, `generators`, or `middleware`, for example.
|
2024-05-05 06:03:25 -04:00
|
|
|
config.autoload_lib(ignore: %w[assets tasks])
|
2023-10-21 06:43:31 -04:00
|
|
|
|
2022-04-06 14:46:10 -04:00
|
|
|
# Configuration for the application, engines, and railties goes here.
|
|
|
|
|
#
|
|
|
|
|
# These settings can be overridden in specific environments using the files
|
|
|
|
|
# in config/environments, which are processed later.
|
|
|
|
|
#
|
2024-03-23 15:40:05 -04:00
|
|
|
config.time_zone = ENV.fetch('TIME_ZONE', 'Europe/Berlin')
|
2022-04-06 14:46:10 -04:00
|
|
|
# config.eager_load_paths << Rails.root.join("extras")
|
2023-10-21 06:43:31 -04:00
|
|
|
|
|
|
|
|
# Don't generate system test files.
|
2022-04-06 14:46:10 -04:00
|
|
|
config.generators.system_tests = nil
|
|
|
|
|
config.generators do |g|
|
|
|
|
|
g.test_framework :rspec, fixture: false
|
|
|
|
|
g.view_specs false
|
|
|
|
|
g.routing_specs false
|
|
|
|
|
g.helper_specs false
|
|
|
|
|
end
|
2025-06-09 07:39:25 -04:00
|
|
|
|
|
|
|
|
config.active_job.queue_adapter = :sidekiq
|
2025-08-14 14:50:22 -04:00
|
|
|
|
2025-12-30 11:33:56 -05:00
|
|
|
config.action_mailer.preview_paths << Rails.root.join('spec/mailers/previews').to_s
|
2022-04-06 14:46:10 -04:00
|
|
|
end
|
|
|
|
|
end
|