mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
Merge pull request #452 from soylent/bugfix/redis-db
Fix redis db option
This commit is contained in:
commit
de085dd5c6
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