Mercurial > rsstweet
comparison config/application.rb @ 185:f67f3ad50270
Update to latest rails and gems
author | nanaya <me@nanaya.pro> |
---|---|
date | Sun, 14 Jul 2019 15:38:04 +0900 |
parents | c57e51af4692 |
children | df86d579634e |
comparison
equal
deleted
inserted
replaced
184:a35c2733552f | 185:f67f3ad50270 |
---|---|
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" | |
12 # require "action_text/engine" | |
11 require "action_view/railtie" | 13 require "action_view/railtie" |
12 # require "action_cable/engine" | 14 # require "action_cable/engine" |
13 # require "sprockets/railtie" | 15 # require "sprockets/railtie" |
14 require "rails/test_unit/railtie" | 16 require "rails/test_unit/railtie" |
15 | 17 |
16 require_relative "config_init" | 18 require_relative 'config_init' |
19 ENV['RAILS_LOG_TO_STDOUT'] = '1' | |
17 | 20 |
18 # Require the gems listed in Gemfile, including any gems | 21 # Require the gems listed in Gemfile, including any gems |
19 # you've limited to :test, :development, or :production. | 22 # you've limited to :test, :development, or :production. |
20 Bundler.require(*Rails.groups) | 23 Bundler.require(*Rails.groups) |
21 | 24 |
22 module Rsstweet | 25 module Rsstweet |
23 class Application < Rails::Application | 26 class Application < Rails::Application |
24 # Settings in config/environments/* take precedence over those specified here. | 27 # Settings in config/environments/* take precedence over those specified here. |
25 # Application configuration should go into files in config/initializers | 28 # Application configuration can go into files in config/initializers |
26 # -- all .rb files in that directory are automatically loaded. | 29 # -- all .rb files in that directory are automatically loaded after loading |
30 # the framework and any gems in your application. | |
27 | 31 |
32 config.middleware.delete ActionDispatch::HostAuthorization | |
28 config.middleware.delete ActionDispatch::Cookies | 33 config.middleware.delete ActionDispatch::Cookies |
29 | |
30 # this isn't actually used but railties checks this variable during boot. | 34 # this isn't actually used but railties checks this variable during boot. |
31 config.secret_key_base = "herp a derp" | 35 config.secret_key_base = "herp a derp" |
32 config.session_store :disabled | 36 config.session_store :disabled |
33 | 37 |
34 if $cfg[:redis_server] | 38 if $cfg[:redis_server] |