Module: Undercarriage::Controllers::Restful::Actions::DestroyConcern
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/undercarriage/controllers/restful/actions/destroy_concern.rb
Overview
Destroy restful action
Instance Method Summary collapse
-
#destroy ⇒ Object
Destroy action.
Instance Method Details
#destroy ⇒ Object
Destroy action
41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/undercarriage/controllers/restful/actions/destroy_concern.rb', line 41 def destroy @destroy_resource.destroy respond_to do |format| format.html do flash[flash_status_type] = redirect_to location_after_destroy end format.json { head :no_content } end end |