Sha256: 2be412c588e717d292738c9eff7b45326f0cc33531dbc869248aa41e14bd7a31
Contents?: true
Size: 381 Bytes
Versions: 8
Compression:
Stored size: 381 Bytes
Contents
# frozen_string_literal: true module Hyrax module ContentBlockHelperBehavior def displayable_content_block(content_block, **options) return unless display_content_block? content_block tag.div(raw(content_block.value), **options) end def display_content_block?(content_block) content_block.present? && content_block.value.present? end end end
Version data entries
8 entries across 8 versions & 1 rubygems