annotate config/application.rb @ 504:aaf58c17694b

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