Exception: DatabaseCleaner::Safeguard::Error::ProductionEnv

Inherits:
DatabaseCleaner::Safeguard::Error show all
Defined in:
lib/database_cleaner/safeguard.rb

Instance Method Summary collapse

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