Browse Source

Remove .presence duplication of logic

pull/2836/head
Manny Dinssa 1 month ago
parent
commit
543733c284
  1. 2
      app/helpers/details_table_helper.rb

2
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)

Loading…
Cancel
Save