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