comparison config/application.rb @ 254:89f6c0016bab default tip

Update to latest rails
author nanaya <me@nanaya.net>
date Tue, 03 Sep 2024 19:21:25 +0900
parents 01f3a7e073c3
children
comparison
equal deleted inserted replaced
253:d726e8b92dd1 254:89f6c0016bab
1 require_relative 'boot' 1 require_relative "boot"
2 2
3 require "rails" 3 require "rails"
4 # Pick the frameworks you want: 4 # Pick the frameworks you want:
5 # require "active_model/railtie" 5 #require "active_model/railtie"
6 # require "active_job/railtie" 6 # require "active_job/railtie"
7 # require "active_record/railtie" 7 # require "active_record/railtie"
8 # require "active_storage/engine" 8 # require "active_storage/engine"
9 require "action_controller/railtie" 9 require "action_controller/railtie"
10 # require "action_mailer/railtie" 10 # require "action_mailer/railtie"
11 # require "action_mailbox/engine" 11 # require "action_mailbox/engine"
12 # require "action_text/engine" 12 # require "action_text/engine"
13 require "action_view/railtie" 13 require "action_view/railtie"
14 # require "action_cable/engine" 14 # require "action_cable/engine"
15 # require "sprockets/railtie"
16 require "rails/test_unit/railtie" 15 require "rails/test_unit/railtie"
17 16
18 require_relative 'config_init' 17 require_relative "config_init"
19 ENV['RAILS_LOG_TO_STDOUT'] = '1'
20 18
21 # Require the gems listed in Gemfile, including any gems 19 # Require the gems listed in Gemfile, including any gems
22 # you've limited to :test, :development, or :production. 20 # you've limited to :test, :development, or :production.
23 Bundler.require(*Rails.groups) 21 Bundler.require(*Rails.groups)
24 22
25 module Rsstweet 23 module Rsstweet
26 class Application < Rails::Application 24 class Application < Rails::Application
27 # Initialize configuration defaults for originally generated Rails version. 25 # Initialize configuration defaults for originally generated Rails version.
28 config.load_defaults 7.0 26 config.load_defaults 7.2
29 # Settings in config/environments/* take precedence over those specified here. 27
30 # Application configuration can go into files in config/initializers 28 # Please, add to the `ignore` list any other `lib` subdirectories that do
31 # -- all .rb files in that directory are automatically loaded after loading 29 # not contain `.rb` files, or that should not be reloaded or eager loaded.
32 # the framework and any gems in your application. 30 # Common ones are `templates`, `generators`, or `middleware`, for example.
31 config.autoload_lib(ignore: %w[assets tasks])
32
33 # Configuration for the application, engines, and railties goes here.
34 #
35 # These settings can be overridden in specific environments using the files
36 # in config/environments, which are processed later.
37 #
38 # config.time_zone = "Central Time (US & Canada)"
39 # config.eager_load_paths << Rails.root.join("extras")
33 40
34 # this isn't actually used but railties *production* checks this variable during boot. 41 # this isn't actually used but railties *production* checks this variable during boot.
35 config.secret_key_base = "herp a derp" 42 config.secret_key_base = "herp a derp"
36 43
37 config.middleware.delete ActionDispatch::HostAuthorization 44 config.middleware.delete ActionDispatch::HostAuthorization