Mercurial > rsstweet
comparison config/application.rb @ 213:609e96a79ad8
Update defaults
| author | nanaya <me@nanaya.pro> | 
|---|---|
| date | Fri, 11 Dec 2020 03:41:31 +0900 | 
| parents | 1395519b423d | 
| children | 2335107f35d0 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 212:1b2dbba1e119 | 213:609e96a79ad8 | 
|---|---|
| 22 # you've limited to :test, :development, or :production. | 22 # you've limited to :test, :development, or :production. | 
| 23 Bundler.require(*Rails.groups) | 23 Bundler.require(*Rails.groups) | 
| 24 | 24 | 
| 25 module Rsstweet | 25 module Rsstweet | 
| 26 class Application < Rails::Application | 26 class Application < Rails::Application | 
| 27 config.load_defaults 6.1 | |
| 27 # Settings in config/environments/* take precedence over those specified here. | 28 # Settings in config/environments/* take precedence over those specified here. | 
| 28 # Application configuration can go into files in config/initializers | 29 # Application configuration can go into files in config/initializers | 
| 29 # -- all .rb files in that directory are automatically loaded after loading | 30 # -- all .rb files in that directory are automatically loaded after loading | 
| 30 # the framework and any gems in your application. | 31 # the framework and any gems in your application. | 
| 31 | 32 | 
| 32 config.middleware.delete ActionDispatch::HostAuthorization | 33 config.middleware.delete ActionDispatch::HostAuthorization | 
| 33 config.middleware.delete ActionDispatch::Cookies | 34 config.middleware.delete ActionDispatch::Cookies | 
| 34 # this isn't actually used but railties checks this variable during boot. | |
| 35 config.secret_key_base = "herp a derp" | |
| 36 config.session_store :disabled | 35 config.session_store :disabled | 
| 37 | 36 | 
| 38 if $cfg[:redis_server] | 37 if $cfg[:redis_server] | 
| 39 config.cache_store = :redis_store, "#{$cfg[:redis_server]}/cache_store", { :expires_in => 12.hours } | 38 config.cache_store = :redis_store, "#{$cfg[:redis_server]}/cache_store", { :expires_in => 12.hours } | 
| 40 end | 39 end | 
