Class: Eyeloupe::DataController
- Inherits:
-
ApplicationController
- Object
- ActionController::Base
- ApplicationController
- Eyeloupe::DataController
- Defined in:
- app/controllers/eyeloupe/data_controller.rb
Instance Method Summary collapse
-
#destroy ⇒ Object
Delete all data in the database DELETE /data.
Methods inherited from ApplicationController
Instance Method Details
#destroy ⇒ Object
Delete all data in the database DELETE /data
9 10 11 12 13 14 |
# File 'app/controllers/eyeloupe/data_controller.rb', line 9 def destroy Exception.destroy_all InRequest.destroy_all OutRequest.destroy_all redirect_to root_path, status: 303 end |