Module: Api::ResourcesController::Base::DestroyAllAction

Extended by:
ActiveSupport::Concern
Included in:
Api::ResourcesController::Base
Defined in:
app/controllers/api/resources_controller/base.rb

Instance Method Summary collapse

Instance Method Details

#destroy_allObject


212
213
214
215
216
# File 'app/controllers/api/resources_controller/base.rb', line 212

def destroy_all
  respond_to do |format|
    format.json { render json: serialize_collection(@collection) }
  end
end