Class: Eyeloupe::DataController

Inherits:
ApplicationController show all
Defined in:
app/controllers/eyeloupe/data_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#root

Instance Method Details

#destroyObject

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