Class: DatabaseCleaner::Safeguard::Production
- Inherits:
-
Object
- Object
- DatabaseCleaner::Safeguard::Production
- Defined in:
- lib/database_cleaner/safeguard.rb
Constant Summary collapse
- KEYS =
%w(ENV RACK_ENV RAILS_ENV)
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
43 44 45 |
# File 'lib/database_cleaner/safeguard.rb', line 43 def run raise Error::ProductionEnv.new(key) if !skip? && given? end |