Class: DatabaseCleaner::Safeguard
- Inherits:
-
Object
- Object
- DatabaseCleaner::Safeguard
- Defined in:
- lib/database_cleaner/safeguard.rb
Defined Under Namespace
Classes: AllowedUrl, Error, Production, RemoteDatabaseUrl
Constant Summary collapse
- CHECKS =
[ RemoteDatabaseUrl, Production, AllowedUrl ]
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
103 104 105 |
# File 'lib/database_cleaner/safeguard.rb', line 103 def run CHECKS.each { |const| const.new.run } end |