Class: RemoteDatabaseCleanerHomeRails::HomeController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- RemoteDatabaseCleanerHomeRails::HomeController
- Defined in:
- app/controllers/remote_database_cleaner_home_rails/home_controller.rb
Instance Method Summary collapse
Instance Method Details
#clean ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'app/controllers/remote_database_cleaner_home_rails/home_controller.rb', line 6 def clean if RemoteDatabaseCleanerHomeRails.enabled? DatabaseCleaner.strategy = strategy DatabaseCleaner.clean render json: {response: 200} else forbidden = 403 render json: { status: forbidden }, status: forbidden end end |