Sha256: af27f3039dc68ace44b76c79fc8459df4af2d9180db52aefca42b0e8dc89e0c4
Contents?: true
Size: 481 Bytes
Versions: 28
Compression:
Stored size: 481 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)) imodal metadata[:label], "<pre>#{h value}</pre>".html_safe else content_tag :code, value end end %>
Version data entries
28 entries across 7 versions & 1 rubygems