comparison config/application.rb @ 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 9defe1ae5814
children aa6d58c8653b
comparison
equal deleted inserted replaced
35:6267a4188c05 36:1fdb3fc5ec31
26 # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. 26 # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
27 # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] 27 # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
28 # config.i18n.default_locale = :de 28 # config.i18n.default_locale = :de
29 config.middleware.delete "ActionDispatch::Cookies" 29 config.middleware.delete "ActionDispatch::Cookies"
30 30
31 # this isn't actually used but railties checks this variable during boot.
32 config.secret_key_base = "herp a derp"
33
31 if ENV["RT_MEMCACHED_SERVERS"] 34 if ENV["RT_MEMCACHED_SERVERS"]
32 config.cache_store = :mem_cache_store, ENV["RT_MEMCACHED_SERVERS"].split(","), { :namespace => "rsstweet" } 35 config.cache_store = :mem_cache_store, ENV["RT_MEMCACHED_SERVERS"].split(","), { :namespace => "rsstweet" }
33 end 36 end
34 end 37 end
35 end 38 end