annotate config/application.rb @ 257:c6a50441a58d

It's now X
author nanaya <me@nanaya.net>
date Sun, 15 Dec 2024 22:48:25 +0900
parents eda83610b65c
children e2150dce4e90
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
254
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 231
diff changeset
1 require_relative "boot"
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
2
148
c57e51af4692 Update with latest rails
nanaya <me@nanaya.pro>
parents: 110
diff changeset
3 require "rails"
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
4 # Pick the frameworks you want:
254
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 231
diff changeset
5 #require "active_model/railtie"
148
c57e51af4692 Update with latest rails
nanaya <me@nanaya.pro>
parents: 110
diff changeset
6 # require "active_job/railtie"
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
7 # require "active_record/railtie"
148
c57e51af4692 Update with latest rails
nanaya <me@nanaya.pro>
parents: 110
diff changeset
8 # require "active_storage/engine"
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
9 require "action_controller/railtie"
1
dac0d7297388 Remove ActionMailer.
edogawaconan <me@myconan.net>
parents: 0
diff changeset
10 # require "action_mailer/railtie"
185
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents: 148
diff changeset
11 # require "action_mailbox/engine"
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents: 148
diff changeset
12 # require "action_text/engine"
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
13 require "action_view/railtie"
148
c57e51af4692 Update with latest rails
nanaya <me@nanaya.pro>
parents: 110
diff changeset
14 # require "action_cable/engine"
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
15 require "rails/test_unit/railtie"
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
16
254
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 231
diff changeset
17 require_relative "config_init"
47
e5082c4c234d Also allow config-file-based configuration.
nanaya <me@myconan.net>
parents: 39
diff changeset
18
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
19 # Require the gems listed in Gemfile, including any gems
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
20 # you've limited to :test, :development, or :production.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
21 Bundler.require(*Rails.groups)
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
22
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
23 module Rsstweet
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
24 class Application < Rails::Application
214
2335107f35d0 Run rails update
nanaya <me@nanaya.pro>
parents: 213
diff changeset
25 # Initialize configuration defaults for originally generated Rails version.
255
eda83610b65c Update rails and stuff
nanaya <me@nanaya.net>
parents: 254
diff changeset
26 config.load_defaults 8.0
254
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 231
diff changeset
27
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 231
diff changeset
28 # Please, add to the `ignore` list any other `lib` subdirectories that do
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 231
diff changeset
29 # not contain `.rb` files, or that should not be reloaded or eager loaded.
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 231
diff changeset
30 # Common ones are `templates`, `generators`, or `middleware`, for example.
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 231
diff changeset
31 config.autoload_lib(ignore: %w[assets tasks])
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 231
diff changeset
32
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 231
diff changeset
33 # Configuration for the application, engines, and railties goes here.
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 231
diff changeset
34 #
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 231
diff changeset
35 # These settings can be overridden in specific environments using the files
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 231
diff changeset
36 # in config/environments, which are processed later.
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 231
diff changeset
37 #
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 231
diff changeset
38 # config.time_zone = "Central Time (US & Canada)"
89f6c0016bab Update to latest rails
nanaya <me@nanaya.net>
parents: 231
diff changeset
39 # config.eager_load_paths << Rails.root.join("extras")
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
40
215
1c1f761f2dcc The parameter is still required in production so it turned out
nanaya <me@nanaya.pro>
parents: 214
diff changeset
41 # this isn't actually used but railties *production* checks this variable during boot.
1c1f761f2dcc The parameter is still required in production so it turned out
nanaya <me@nanaya.pro>
parents: 214
diff changeset
42 config.secret_key_base = "herp a derp"
1c1f761f2dcc The parameter is still required in production so it turned out
nanaya <me@nanaya.pro>
parents: 214
diff changeset
43
185
f67f3ad50270 Update to latest rails and gems
nanaya <me@nanaya.pro>
parents: 148
diff changeset
44 config.middleware.delete ActionDispatch::HostAuthorization
72
257910c60eb3 Rails 5 \o/
nanaya <me@myconan.net>
parents: 47
diff changeset
45 config.middleware.delete ActionDispatch::Cookies
216
2a3c7db6007a Remove more middlewares
nanaya <me@nanaya.pro>
parents: 215
diff changeset
46 config.middleware.delete ActionDispatch::ContentSecurityPolicy::Middleware
2a3c7db6007a Remove more middlewares
nanaya <me@nanaya.pro>
parents: 215
diff changeset
47 config.middleware.delete ActionDispatch::PermissionsPolicy::Middleware
2a3c7db6007a Remove more middlewares
nanaya <me@nanaya.pro>
parents: 215
diff changeset
48 config.middleware.delete ActionDispatch::RemoteIp
2a3c7db6007a Remove more middlewares
nanaya <me@nanaya.pro>
parents: 215
diff changeset
49
39
aa6d58c8653b Remove all initializers.
edogawaconan <me@myconan.net>
parents: 36
diff changeset
50 config.session_store :disabled
36
1fdb3fc5ec31 Move setting of secret_key_base to application.rb.
edogawaconan <me@myconan.net>
parents: 33
diff changeset
51
110
f76d44baa3dc Test adding redis support
nanaya <me@myconan.net>
parents: 89
diff changeset
52 if $cfg[:redis_server]
231
01f3a7e073c3 Remove unsupported namespace syntax
nanaya <me@nanaya.net>
parents: 226
diff changeset
53 config.cache_store = :redis_cache_store, { url: "#{$cfg[:redis_server]}" }
28
03f904c070f7 Basic caching support.
edogawaconan <me@myconan.net>
parents: 19
diff changeset
54 end
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
55 end
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
56 end