diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2019-01-16 16:17:52 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2019-01-17 16:08:34 -0500 |
commit | 46ac5fe69a20d4539a15929fe48293e1809a26b0 (patch) | |
tree | 182d902bd1b271345be8bbc144363a6fba5a8863 /railties/test/application/middleware/remote_ip_test.rb | |
parent | 6eb1d56a333fd2015610d31793ed6281acd66551 (diff) | |
download | rails-46ac5fe69a20d4539a15929fe48293e1809a26b0.tar.gz rails-46ac5fe69a20d4539a15929fe48293e1809a26b0.tar.bz2 rails-46ac5fe69a20d4539a15929fe48293e1809a26b0.zip |
Remove deprecated `config.secret_token`
Diffstat (limited to 'railties/test/application/middleware/remote_ip_test.rb')
-rw-r--r-- | railties/test/application/middleware/remote_ip_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/test/application/middleware/remote_ip_test.rb b/railties/test/application/middleware/remote_ip_test.rb index 83cf8a27f7..515b32080e 100644 --- a/railties/test/application/middleware/remote_ip_test.rb +++ b/railties/test/application/middleware/remote_ip_test.rb @@ -12,7 +12,9 @@ module ApplicationTests remote_ip = nil env = Rack::MockRequest.env_for("/").merge(env).merge!( "action_dispatch.show_exceptions" => false, - "action_dispatch.key_generator" => ActiveSupport::LegacyKeyGenerator.new("b3c631c314c0bbca50c1b2843150fe33") + "action_dispatch.key_generator" => ActiveSupport::CachingKeyGenerator.new( + ActiveSupport::KeyGenerator.new("b3c631c314c0bbca50c1b2843150fe33", iterations: 1000) + ) ) endpoint = Proc.new do |e| |