From 8cc356b31c3fb4df9c718867e4b1c933751f2a65 Mon Sep 17 00:00:00 2001 From: Santiago Bartesaghi Date: Mon, 2 Dec 2019 17:37:17 -0300 Subject: [PATCH] Don't convert nil to '' (empty string) --- app/controllers/administrate/application_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/administrate/application_controller.rb b/app/controllers/administrate/application_controller.rb index 8e898f8c7b..fd108eb1a6 100644 --- a/app/controllers/administrate/application_controller.rb +++ b/app/controllers/administrate/application_controller.rb @@ -145,7 +145,7 @@ def read_param_value(data) raise "Unrecognised param data: #{data.inspect}" end else - data + data.presence end end