Mercurial > rsstweet
changeset 36:1fdb3fc5ec31
Move setting of secret_key_base to application.rb.
One less file to take care about.
author | edogawaconan <me@myconan.net> |
---|---|
date | Thu, 11 Dec 2014 15:43:36 +0900 |
parents | 6267a4188c05 |
children | 81f23f5bf85d |
files | config/application.rb config/secrets.yml |
diffstat | 2 files changed, 3 insertions(+), 22 deletions(-) [+] |
line wrap: on
line diff
--- a/config/application.rb Thu Dec 11 15:38:23 2014 +0900 +++ b/config/application.rb Thu Dec 11 15:43:36 2014 +0900 @@ -28,6 +28,9 @@ # config.i18n.default_locale = :de config.middleware.delete "ActionDispatch::Cookies" + # this isn't actually used but railties checks this variable during boot. + config.secret_key_base = "herp a derp" + if ENV["RT_MEMCACHED_SERVERS"] config.cache_store = :mem_cache_store, ENV["RT_MEMCACHED_SERVERS"].split(","), { :namespace => "rsstweet" } end
--- a/config/secrets.yml Thu Dec 11 15:38:23 2014 +0900 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Your secret key is used for verifying the integrity of signed cookies. -# If you change this key, all old signed cookies will become invalid! - -# Make sure the secret is at least 30 characters and all random, -# no regular words or you'll be exposed to dictionary attacks. -# You can use `rake secret` to generate a secure secret key. - -# Make sure the secrets in this file are kept private -# if you're sharing your code publicly. - -development: - secret_key_base: herp - -test: - secret_key_base: a - -# Do not keep production secrets in the repository, -# instead read values from the environment. -production: - secret_key_base: derp