| 1 | require_relative "boot" |
| 2 | |
| 3 | # The app version defines `Sigitsi::VERSION`. Load it here rather than through |
| 4 | # autoloading: `Sigitsi` is opened manually below (outside the autoload paths), |
| 5 | # so Zeitwerk never installs an autoload for constants nested under it. The |
| 6 | # matching Zeitwerk `ignore` for this file lives in the Application config. |
| 7 | require_relative "../lib/sigitsi/version" |
| 8 | |
| 9 | require "rails" |
| 10 | # Pick the frameworks you want: |
| 11 | require "active_model/railtie" |
| 12 | require "active_job/railtie" |
| 13 | require "active_record/railtie" |
| 14 | require "active_storage/engine" |
| 15 | require "action_controller/railtie" |
| 16 | require "action_mailer/railtie" |
| 17 | require "action_mailbox/engine" |
| 18 | require "action_text/engine" |
| 19 | require "action_view/railtie" |
| 20 | require "action_cable/engine" |
| 21 | # require "rails/test_unit/railtie" |
| 22 | |
| 23 | # Require the gems listed in Gemfile, including any gems |
| 24 | # you've limited to :test, :development, or :production. |
| 25 | Bundler.require(*Rails.groups) |
| 26 | |
| 27 | module Sigitsi |
| 28 | class Application < Rails::Application |
| 29 | # Initialize configuration defaults for originally generated Rails version. |
| 30 | config.load_defaults 8.1 |
| 31 | |
| 32 | # Please, add to the `ignore` list any other `lib` subdirectories that do |
| 33 | # not contain `.rb` files, or that should not be reloaded or eager loaded. |
| 34 | # Common ones are `templates`, `generators`, or `middleware`, for example. |
| 35 | config.autoload_lib(ignore: %w[assets tasks]) |
| 36 | |
| 37 | # `lib/sigitsi/version.rb` is required by hand above (see the note there), |
| 38 | # so keep Zeitwerk from also managing it — otherwise eager loading in |
| 39 | # production would try to define an already-defined constant. |
| 40 | Rails.autoloaders.main.ignore(Rails.root.join("lib/sigitsi/version.rb")) |
| 41 | |
| 42 | # Configuration for the application, engines, and railties goes here. |
| 43 | # |
| 44 | # These settings can be overridden in specific environments using the files |
| 45 | # in config/environments, which are processed later. |
| 46 | # |
| 47 | # config.time_zone = "Central Time (US & Canada)" |
| 48 | # config.eager_load_paths << Rails.root.join("extras") |
| 49 | |
| 50 | # Don't generate system test files. |
| 51 | config.generators.system_tests = nil |
| 52 | end |
| 53 | end |