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



44
45
46
# File 'lib/database_cleaner/safeguard.rb', line 44

def run
  raise Error::RemoteDatabaseUrl if !skip? && given?
end