Sha256: dcd6e0425c22ced083a8bdab5638f2f9bbbe7730046ca0107e3855ab98c1a3dc

Contents?: true

Size: 318 Bytes

Versions: 4

Compression:

Stored size: 318 Bytes

Contents

module Hyrax
  module ContentBlockHelperBehavior
    def displayable_content_block(content_block, **options)
      return if content_block.value.blank?
      content_tag :div, raw(content_block.value), options
    end

    def display_content_block?(content_block)
      content_block.value.present?
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
hyrax-2.0.0.beta4 app/helpers/hyrax/content_block_helper_behavior.rb
hyrax-2.0.0.beta3 app/helpers/hyrax/content_block_helper_behavior.rb
hyrax-2.0.0.beta2 app/helpers/hyrax/content_block_helper_behavior.rb
hyrax-2.0.0.beta1 app/helpers/hyrax/content_block_helper_behavior.rb