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