Sha256: 9954eb13c16e879841a895b308035cc62e2eac402f790dece6a3b956f1640963
Contents?: true
Size: 448 Bytes
Versions: 8
Compression:
Stored size: 448 Bytes
Contents
<%# @param object [model] model instance %> <%# @param field_name [String] name of the field %> <%# @param value [Object] value of the field %> <%# @param metadata [Hash] metadata of the field %> <%= if value.nil? null else max = metadata[:max] || max_text_length value = value.to_s if value.length > max concat content_tag(:code, value.truncate(max)) imodal metadata[:label], value else content_tag :code, value end end %>
Version data entries
8 entries across 4 versions & 1 rubygems