Class: FactoryGirlApi::DatabasesController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- FactoryGirlApi::DatabasesController
- Defined in:
- app/controllers/factory_girl_api/databases_controller.rb
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
5 6 7 8 9 |
# File 'app/controllers/factory_girl_api/databases_controller.rb', line 5 def create DatabaseCleaner.strategy = :truncation DatabaseCleaner.start render json: {} end |
#destroy ⇒ Object
11 12 13 14 |
# File 'app/controllers/factory_girl_api/databases_controller.rb', line 11 def destroy DatabaseCleaner.clean render json: {} end |