From 543733c284e82db1ae648d3098d5b79664d19db3 Mon Sep 17 00:00:00 2001 From: Manny Dinssa <44172848+Dinssa@users.noreply.github.com> Date: Tue, 17 Dec 2024 16:58:26 +0000 Subject: [PATCH] Remove .presence duplication of logic --- app/helpers/details_table_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/details_table_helper.rb b/app/helpers/details_table_helper.rb index c3666c804..d5499eec4 100644 --- a/app/helpers/details_table_helper.rb +++ b/app/helpers/details_table_helper.rb @@ -14,7 +14,7 @@ module DetailsTableHelper private def determine_value(attribute, resource) - return attribute[:value].presence if attribute[:value].present? + return attribute[:value] if attribute[:value].present? method_name = "#{resource.class.name.downcase}_value" return send(method_name, attribute, resource) if respond_to?(method_name, true)