Class: DatabaseCleaner::Safeguard::RemoteDatabaseUrl

Inherits:
Object
  • Object
show all
Defined in:
lib/database_cleaner/safeguard.rb

Constant Summary collapse

LOCAL =
%w(localhost 127.0.0.1)

Instance Method Summary collapse

Instance Method Details

#runObject



46
47
48
49
# File 'lib/database_cleaner/safeguard.rb', line 46

def run
  return if skip?
  raise Error::RemoteDatabaseUrl if given?
end