Sha256: 3ed25f3d9e307c1a7e8d0c44e02b71832efa9577298612ac5d667f076e3b1827
Contents?: true
Size: 448 Bytes
Versions: 5
Compression:
Stored size: 448 Bytes
Contents
# frozen_string_literal: true module Koi module Tables # Custom body cell component, in order to override the content class BodyCellComponent < Katalyst::Tables::BodyCellComponent def before_render # fallback if no content block is given with_content(rendered_value) unless content? end def rendered_value value.to_s end def to_s rendered_value end end end end
Version data entries
5 entries across 5 versions & 1 rubygems