Mercurial > zeropaste
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 |
rev | line source |
---|---|
431 | 1 require_relative "boot" |
0 | 2 |
495 | 3 require "rails" |
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 | 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 | 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 | 11 # require "action_mailbox/engine" |
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 | 15 require "rails/test_unit/railtie" |
0 | 16 |
495 | 17 # Require the gems listed in Gemfile, including any gems |
18 # you've limited to :test, :development, or :production. | |
19 Bundler.require(*Rails.groups) | |
0 | 20 |
21 module Zeropaste | |
22 class Application < Rails::Application | |
495 | 23 # Initialize configuration defaults for originally generated Rails version. |
24 config.load_defaults 8.0 | |
0 | 25 |
495 | 26 # Please, add to the `ignore` list any other `lib` subdirectories that do |
27 # not contain `.rb` files, or that should not be reloaded or eager loaded. | |
28 # Common ones are `templates`, `generators`, or `middleware`, for example. | |
29 config.autoload_lib(ignore: %w[assets tasks]) | |
0 | 30 |
495 | 31 # Configuration for the application, engines, and railties goes here. |
32 # | |
33 # These settings can be overridden in specific environments using the files | |
34 # in config/environments, which are processed later. | |
35 # | |
36 # config.time_zone = "Central Time (US & Canada)" | |
37 # config.eager_load_paths << Rails.root.join("extras") | |
0 | 38 end |
39 end |