Skip to content

Commit

Permalink
use to_hash instead of to_h
Browse files Browse the repository at this point in the history
  • Loading branch information
Steven Cumming committed Mar 6, 2024
1 parent 58ae858 commit 1eca451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/01_redis.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
REDIS_CONFIG = Rails.application.config_for(:redis).freeze
# set the current global instance of Redis based on environment specific config

$redis = Redis.new(REDIS_CONFIG[:redis].to_h)
$redis = Redis.new(REDIS_CONFIG[:redis].to_hash)
# if Rails.env.test?
# require 'testcontainers/redis'
# container = Testcontainers::RedisContainer.new("redis:6.2-alpine")
Expand Down

0 comments on commit 1eca451

Please sign in to comment.