Sha256: 6e94182f8bc7efb80085137595379eb8f6a145fb4f6b9d344b61efb5404eca8d
Contents?: true
Size: 589 Bytes
Versions: 2
Compression:
Stored size: 589 Bytes
Contents
# frozen_string_literal: true module Wallaby module Resources module Index # Html cell class PathHtml < 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)) imodal metadata[:label], 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/path_html.rb |
wallaby-6.0.1 | app/views/wallaby/resources/index/path_html.rb |