annotate config/application.rb @ 495:92929378413e

Update to latest rails
author nanaya <me@nanaya.net>
date Sun, 15 Dec 2024 22:18:06 +0900
parents 6cac8fcf8164
children aaf58c17694b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
495
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 485
diff changeset
1 require_relative "config_init"
431
68eb23b52864 Rails 5 \o/
nanaya <me@myconan.net>
parents: 398
diff changeset
2 require_relative "boot"
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
3
495
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 485
diff changeset
4 require "rails"
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 485
diff changeset
5 # Pick the frameworks you want:
459
07d6c6639adf Upgrade to rails 5.2. RIP code style.
nanaya <me@nanaya.pro>
parents: 438
diff changeset
6 require "active_model/railtie"
07d6c6639adf Upgrade to rails 5.2. RIP code style.
nanaya <me@nanaya.pro>
parents: 438
diff changeset
7 # require "active_job/railtie"
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
8 require "active_record/railtie"
459
07d6c6639adf Upgrade to rails 5.2. RIP code style.
nanaya <me@nanaya.pro>
parents: 438
diff changeset
9 # require "active_storage/engine"
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
10 require "action_controller/railtie"
93
2cd5ff641865 Disabled unused action_mailer.
Edho Arief <edho@myconan.net>
parents: 91
diff changeset
11 # require "action_mailer/railtie"
495
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 485
diff changeset
12 # require "action_mailbox/engine"
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 485
diff changeset
13 # require "action_text/engine"
459
07d6c6639adf Upgrade to rails 5.2. RIP code style.
nanaya <me@nanaya.pro>
parents: 438
diff changeset
14 require "action_view/railtie"
07d6c6639adf Upgrade to rails 5.2. RIP code style.
nanaya <me@nanaya.pro>
parents: 438
diff changeset
15 # require "action_cable/engine"
292
207853e26088 Add test back.
edogawaconan <me@myconan.net>
parents: 200
diff changeset
16 require "rails/test_unit/railtie"
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
17
495
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 485
diff changeset
18 # Require the gems listed in Gemfile, including any gems
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 485
diff changeset
19 # you've limited to :test, :development, or :production.
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 485
diff changeset
20 Bundler.require(*Rails.groups)
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
21
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
22 module Zeropaste
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
23 class Application < Rails::Application
495
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 485
diff changeset
24 # Initialize configuration defaults for originally generated Rails version.
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 485
diff changeset
25 config.load_defaults 8.0
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
26
495
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 485
diff changeset
27 # Please, add to the `ignore` list any other `lib` subdirectories that do
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 485
diff changeset
28 # not contain `.rb` files, or that should not be reloaded or eager loaded.
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 485
diff changeset
29 # Common ones are `templates`, `generators`, or `middleware`, for example.
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 485
diff changeset
30 config.autoload_lib(ignore: %w[assets tasks])
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
31
495
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 485
diff changeset
32 # Configuration for the application, engines, and railties goes here.
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 485
diff changeset
33 #
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 485
diff changeset
34 # These settings can be overridden in specific environments using the files
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 485
diff changeset
35 # in config/environments, which are processed later.
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 485
diff changeset
36 #
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 485
diff changeset
37 # config.time_zone = "Central Time (US & Canada)"
92929378413e Update to latest rails
nanaya <me@nanaya.net>
parents: 485
diff changeset
38 # config.eager_load_paths << Rails.root.join("extras")
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
39
460
b1ef80121c79 Update to use correct timestamp datatype
nanaya <me@nanaya.pro>
parents: 459
diff changeset
40 config.active_record.schema_format = :sql
467
fd3078b4d355 Update to latest rails
nanaya <me@nanaya.pro>
parents: 460
diff changeset
41 config.middleware.delete ActionDispatch::HostAuthorization
0
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
42 end
4aa8194a1733 Initial.
Edho Arief <edho@myconan.net>
parents:
diff changeset
43 end