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
|
||||
if url == :default
|
||||
::Redis.new
|
||||
elsif db.class.is_a?(::Redis) # pass directly the connection
|
||||
elsif db.is_a?(::Redis) # pass directly the connection
|
||||
db
|
||||
else
|
||||
::Redis.new(:url => url)
|
||||
|
|
Loading…
Reference in a new issue