Mercurial > rsstweet
comparison config/application.rb @ 192:1395519b423d
Backed out changeset df86d579634e
Turns out it's still needed.
author | nanaya <me@nanaya.pro> |
---|---|
date | Sat, 27 Jul 2019 14:18:50 +0900 |
parents | df86d579634e |
children | 609e96a79ad8 |
comparison
equal
deleted
inserted
replaced
191:64e47a4d4df4 | 192:1395519b423d |
---|---|
29 # -- all .rb files in that directory are automatically loaded after loading | 29 # -- all .rb files in that directory are automatically loaded after loading |
30 # the framework and any gems in your application. | 30 # the framework and any gems in your application. |
31 | 31 |
32 config.middleware.delete ActionDispatch::HostAuthorization | 32 config.middleware.delete ActionDispatch::HostAuthorization |
33 config.middleware.delete ActionDispatch::Cookies | 33 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" | |
34 config.session_store :disabled | 36 config.session_store :disabled |
35 | 37 |
36 if $cfg[:redis_server] | 38 if $cfg[:redis_server] |
37 config.cache_store = :redis_store, "#{$cfg[:redis_server]}/cache_store", { :expires_in => 12.hours } | 39 config.cache_store = :redis_store, "#{$cfg[:redis_server]}/cache_store", { :expires_in => 12.hours } |
38 end | 40 end |