|
|
@ -14,7 +14,7 @@ module DetailsTableHelper |
|
|
|
private |
|
|
|
private |
|
|
|
|
|
|
|
|
|
|
|
def determine_value(attribute, resource) |
|
|
|
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" |
|
|
|
method_name = "#{resource.class.name.downcase}_value" |
|
|
|
return send(method_name, attribute, resource) if respond_to?(method_name, true) |
|
|
|
return send(method_name, attribute, resource) if respond_to?(method_name, true) |
|
|
|