mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Fix redis db option
This commit is contained in:
parent
f052d64d3b
commit
7906415de9
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ module DatabaseCleaner
|
||||||
@connection ||= begin
|
@connection ||= begin
|
||||||
if url == :default
|
if url == :default
|
||||||
::Redis.new
|
::Redis.new
|
||||||
elsif db.class.is_a?(::Redis) # pass directly the connection
|
elsif db.is_a?(::Redis) # pass directly the connection
|
||||||
db
|
db
|
||||||
else
|
else
|
||||||
::Redis.new(:url => url)
|
::Redis.new(:url => url)
|
||||||
|
|
Loading…
Reference in a new issue