Class: DatabaseCleaner::Safeguard::Production
- Inherits:
-
Object
- Object
- DatabaseCleaner::Safeguard::Production
- 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
#run ⇒ Object
77 78 79 |
# File 'lib/database_cleaner/safeguard.rb', line 77 def run raise Error::ProductionEnv.new(key) if !skip? && given? end |