Class: DatabaseCleaner::Safeguard::AllowedUrl

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

Instance Method Summary collapse

Instance Method Details

#runObject


24
25
26
27
# File 'lib/database_cleaner/safeguard.rb', line 24

def run
  return if skip?
  raise Error::UrlNotAllowed if database_url_not_allowed?
end