Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Ensure secret_key_base is set for all environments

  • Loading branch information...
commit 959cfcef7255bba720ce3f15323056533ea7b50a 1 parent 6570448
@josevalim josevalim authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  railties/test/isolation/abstract_unit.rb
View
3  railties/test/isolation/abstract_unit.rb
@@ -136,6 +136,7 @@ def build_app(options = {})
end
add_to_config <<-RUBY
+ secrets.secret_key_base = "3b7cd727ee24e8444053437c36cc66c4"
config.eager_load = false
config.session_store :cookie_store, key: "_myapp_session"
config.active_support.deprecation = :log
@@ -155,8 +156,8 @@ def make_basic_app
require "action_view/railtie"
app = Class.new(Rails::Application)
- app.config.eager_load = false
app.secrets.secret_key_base = "3b7cd727ee24e8444053437c36cc66c4"
+ app.config.eager_load = false
app.config.session_store :cookie_store, key: "_myapp_session"
app.config.active_support.deprecation = :log
Please sign in to comment.
Something went wrong with that request. Please try again.