mirror of
https://github.com/DatabaseCleaner/database_cleaner
synced 2023-03-27 23:22:03 -04:00
fix database_cleaner-ohm autodetected adapter loading.
This commit is contained in:
parent
cf09333d83
commit
2c4e06aff6
1 changed files with 6 additions and 1 deletions
|
|
@ -1,4 +1,9 @@
|
|||
require 'database_cleaner/redis/truncation'
|
||||
begin # when database_cleaner-ohm is loaded as a gem
|
||||
require 'database_cleaner/redis/truncation'
|
||||
rescue LoadError # when database_cleaner is loaded as a gem
|
||||
$LOAD_PATH.unshift File.expand_path("#{File.dirname(__FILE__)}/../../../../../adapters/database_cleaner-redis/lib")
|
||||
require 'database_cleaner/redis/truncation'
|
||||
end
|
||||
|
||||
module DatabaseCleaner
|
||||
module Ohm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue