From 038710b22ccf3dd2421ec8d07fae45ef05a47ada Mon Sep 17 00:00:00 2001 From: Robert Date: Tue, 22 Aug 2017 18:07:13 +0200 Subject: Refs: 4273@5h; Still debugging zip file upload inside post to Rails api; Retry removed (but not the deadcode yet) [amend me] --- app/controllers/api/v1/netex_imports_controller.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'app/controllers/api') diff --git a/app/controllers/api/v1/netex_imports_controller.rb b/app/controllers/api/v1/netex_imports_controller.rb index 7dc18a7be..fd28ba45a 100644 --- a/app/controllers/api/v1/netex_imports_controller.rb +++ b/app/controllers/api/v1/netex_imports_controller.rb @@ -44,10 +44,8 @@ module Api ReferentialMetadataKludge.make_metadata_from_name! netex_import_params['name'], referential_id: @new_referential.id # <<< REMOVE ME !!!! rescue ActiveRecord::RecordInvalid - require 'pry' - binding.pry # render json: {errors: @new_referential.errors}, status: 406 - render json: {errors: ErrorFormat.detailed(@new_referential)}, status: 406 + render json: {errors: ErrorFormat.details(@new_referential)}, status: 406 finish_action! end -- cgit v1.2.3