diff --git a/config/initializers/secret_key_base.rb b/config/initializers/secret_key_base.rb index c93be58c..1ddd11c6 100644 --- a/config/initializers/secret_key_base.rb +++ b/config/initializers/secret_key_base.rb @@ -7,7 +7,7 @@ # This will have a few costs like for # example session becoming invalid on new devices and you can share cookies between multiple servers # However you can still use the ENV["SECRET_KEY_BASE"] and all this does not mater -if Rails.application.credentials.secret_key_base.nil? +if Rails.application.secrets.secret_key_base.nil? key_file = Rails.root.join("tmp/#{Rails.env}_secret.txt") unless File.exist?(key_file) random_key = SecureRandom.hex(64)