Class: Hangar::RecordsController

Inherits:
ActionController::Base
  • Object
show all
Defined in:
app/controllers/hangar/records_controller.rb

Instance Method Summary collapse

Instance Method Details

#deleteObject


3
4
5
6
# File 'app/controllers/hangar/records_controller.rb', line 3

def delete
  DatabaseCleaner.clean_with Hangar.clean_strategy, except: Hangar.do_not_delete
  head :no_content, content_type: "text/html"
end