"DEPRECATION WARNING: You didn't set `secret_key_base`."

"Read the upgrade documentation to learn more about this new config option."
This commit is contained in:
Akira Matsuda 2016-07-05 17:54:06 +09:00
parent 0fcfad2030
commit 7d3dbd8e39
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ require 'fake_app/mongoid/config' if defined? Mongoid
require 'fake_app/mongo_mapper/config' if defined? MongoMapper
# config
app = Class.new(Rails::Application)
app.config.secret_token = '3b7cd727ee24e8444053437c36cc66c4'
app.config.secret_key_base = app.config.secret_token = '3b7cd727ee24e8444053437c36cc66c4'
app.config.session_store :cookie_store, :key => '_myapp_session'
app.config.active_support.deprecation = :log
app.config.eager_load = false