Exception: DatabaseCleaner::Safeguard::Error::ProductionEnv
- Inherits:
-
DatabaseCleaner::Safeguard::Error
- Object
- Exception
- DatabaseCleaner::Safeguard::Error
- DatabaseCleaner::Safeguard::Error::ProductionEnv
- Defined in:
- lib/database_cleaner/safeguard.rb
Instance Method Summary collapse
-
#initialize(env) ⇒ ProductionEnv
constructor
A new instance of ProductionEnv.
Constructor Details
#initialize(env) ⇒ ProductionEnv
Returns a new instance of ProductionEnv.
11 12 13 |
# File 'lib/database_cleaner/safeguard.rb', line 11 def initialize(env) super("ENV['#{env}'] is set to production. Please refer to https://github.com/DatabaseCleaner/database_cleaner#safeguards") end |