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


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

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