Class: DatabaseCleaner::Safeguard::Production

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

Constant Summary collapse

KEYS =
%w(ENV APP_ENV RACK_ENV RAILS_ENV)

Instance Method Summary collapse

Instance Method Details

#runObject



76
77
78
# File 'lib/database_cleaner/safeguard.rb', line 76

def run
  raise Error::ProductionEnv.new(key) if !skip? && given?
end