Exception: DatabaseCleaner::Safeguard::Error::UrlNotAllowed
- Inherits:
-
DatabaseCleaner::Safeguard::Error
- Object
- Exception
- DatabaseCleaner::Safeguard::Error
- DatabaseCleaner::Safeguard::Error::UrlNotAllowed
- Defined in:
- lib/database_cleaner/safeguard.rb
Instance Method Summary collapse
-
#initialize ⇒ UrlNotAllowed
constructor
A new instance of UrlNotAllowed.
Constructor Details
#initialize ⇒ UrlNotAllowed
Returns a new instance of UrlNotAllowed.
17 18 19 |
# File 'lib/database_cleaner/safeguard.rb', line 17 def initialize super("ENV['DATABASE_URL'] is set to a URL that is not on the allowlist. Please refer to https://github.com/DatabaseCleaner/database_cleaner#safeguards") end |