Class: DatabaseCleaner::Safeguard

Inherits:
Object
  • Object
show all
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

#runObject


103
104
105
# File 'lib/database_cleaner/safeguard.rb', line 103

def run
  CHECKS.each { |const| const.new.run }
end