Sha256: 15a85c8e52e44f9e4ef97699eda4dd14620e1e0f0e73a7fe2251b1ccb6990814
Contents?: true
Size: 437 Bytes
Versions: 28
Compression:
Stored size: 437 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] || default_metadata.max value = value.to_s if value.length > max concat content_tag(:code, value.truncate(max)) itooltip value else content_tag :code, value end end %>
Version data entries
28 entries across 7 versions & 1 rubygems