Sha256: e1c1dd29ff12b198b3c9280aa17677f415f474373876fca13aa320e5bc02f993
Contents?: true
Size: 573 Bytes
Versions: 2
Compression:
Stored size: 573 Bytes
Contents
# frozen_string_literal: true module Wallaby module Resources module Index # Html cell class LineHtml < Cell # @return [String] def render if value.nil? null else max = metadata[:max] || default_metadata.max self.value = value.to_s if value.length > max concat content_tag(:code, value.truncate(max)) itooltip value else content_tag :code, value end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wallaby-6.0.2 | app/views/wallaby/resources/index/line_html.rb |
wallaby-6.0.1 | app/views/wallaby/resources/index/line_html.rb |