Class: DatabaseCleaner::Sequel::Base
- Inherits:
-
Strategy
- Object
- Strategy
- DatabaseCleaner::Sequel::Base
- Defined in:
- lib/database_cleaner/sequel/base.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#db ⇒ Object
6 7 8 9 10 |
# File 'lib/database_cleaner/sequel/base.rb', line 6 def db return @db if @db && @db != :default raise "As you have more than one active sequel database you have to specify the one to use manually!" if ::Sequel::DATABASES.count > 1 ::Sequel::DATABASES.first || :default end |