-
-
Notifications
You must be signed in to change notification settings - Fork 391
Expand file tree
/
Copy pathapplication.rb
More file actions
57 lines (46 loc) · 1.9 KB
/
application.rb
File metadata and controls
57 lines (46 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# frozen_string_literal: true
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 Stringer
end
class Stringer::Application < Rails::Application
# Initialize configuration defaults for originally generated Rails version.
config.load_defaults(8.0)
# 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.
config.autoload_lib(ignore: ["assets", "tasks"])
# 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.
#
# config.time_zone = "Central Time (US & Canada)"
config.eager_load_paths << Rails.root.join("app/commands/story")
config.eager_load_paths << Rails.root.join("app/commands/user")
# Don't generate system test files.
config.generators.system_tests = nil
config.active_job.queue_adapter = :good_job
config.active_record.belongs_to_required_by_default = false
config.active_record.encryption.primary_key =
ENV.fetch("ENCRYPTION_PRIMARY_KEY")
config.active_record.encryption.deterministic_key =
ENV.fetch("ENCRYPTION_DETERMINISTIC_KEY")
config.active_record.encryption.key_derivation_salt =
ENV.fetch("ENCRYPTION_KEY_DERIVATION_SALT")
end