From a7e771557d69c864d7976d40733fc77d80f77ee1 Mon Sep 17 00:00:00 2001 From: Benjamin ter Kuile Date: Mon, 2 Mar 2020 14:12:56 -0500 Subject: [PATCH] Fix hash return for image attributes --- app/controllers/suppliers/products_controller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/suppliers/products_controller.rb b/app/controllers/suppliers/products_controller.rb index 5f0fe544..e91b387c 100644 --- a/app/controllers/suppliers/products_controller.rb +++ b/app/controllers/suppliers/products_controller.rb @@ -118,6 +118,9 @@ module Suppliers file.binmode file.write decoded_attribute authorized_params[attribute] = file + else + # Will be a "/system/product/:id/images/small.?1421223999"} permitted: true> + authorized_params.delete attribute end end end