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



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

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