app/views/wallaby/resources/index/_jsonb.html.erb in wallaby-6.1.6 vs app/views/wallaby/resources/index/_jsonb.html.erb in wallaby-7.0.0.beta1
- old
+ new
@@ -3,10 +3,10 @@
<%# @param value [Object] value of the field %>
<%# @param metadata [Hash] metadata of the field %>
<%= if value.nil?
null
else
- max = metadata[:max] || default_metadata.max
+ max = metadata[:max] || max_text_length
value = value.to_s
if value.length > max
concat content_tag(:code, value.truncate(max))
imodal metadata[:label], "<pre>#{h value}</pre>".html_safe
else