about summary refs log tree commit diff
path: root/config
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2020-07-01 19:05:21 +0200
committerGitHub <noreply@github.com>2020-07-01 19:05:21 +0200
commit6d23d40420e4548778f3ca4ed9e8cb16e0eb0073 (patch)
tree814fe2ea2f3b6b8ab9db2d12b289ba49db44c8fd /config
parente9ea960773ee6a1068623374b21d768918fbc93b (diff)
Change Redis#exists calls to Redis#exists? to avoid deprecation warning (#14191)
Diffstat (limited to 'config')
-rw-r--r--config/application.rb1
-rw-r--r--config/initializers/redis.rb2
2 files changed, 1 insertions, 2 deletions
diff --git a/config/application.rb b/config/application.rb
index a1da9d61f..a3c37b042 100644
--- a/config/application.rb
+++ b/config/application.rb
@@ -7,6 +7,7 @@ require 'rails/all'
 Bundler.require(*Rails.groups)
 
 require_relative '../app/lib/exceptions'
+require_relative '../lib/redis/namespace_extensions'
 require_relative '../lib/paperclip/url_generator_extensions'
 require_relative '../lib/paperclip/attachment_extensions'
 require_relative '../lib/paperclip/media_type_spoof_detector_extensions'
diff --git a/config/initializers/redis.rb b/config/initializers/redis.rb
index 510194044..7573fc9f7 100644
--- a/config/initializers/redis.rb
+++ b/config/initializers/redis.rb
@@ -1,7 +1,5 @@
 # frozen_string_literal: true
 
-Redis.exists_returns_integer = false
-
 redis_connection = Redis.new(
   url: ENV['REDIS_URL'],
   driver: :hiredis