Skip to content

Commit 3a7a054

Browse files
committed
Call format value after resolving of nested value
1 parent df9619a commit 3a7a054

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/helpers/trestle/format_helper.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ def autoformat_value(value, options={})
3939
content_tag(:span, blank, class: "blank")
4040
end
4141
when String
42-
if value.html_safe? || options[:truncate] == false
42+
if value.html_safe? || options.fetch(:truncate, false) == false
4343
value
4444
else
4545
truncate(value, options[:truncate] || {})
4646
end
4747
when ->(value) { value.respond_to?(:id) }
48-
display(value)
48+
autoformat_value(display(value), options)
4949
else
5050
value
5151
end

0 commit comments

Comments
 (0)