Sha256: 4a45234a2a3487e935b3eaa9d9cf8fc8b95773b403df6f64a3235801a988bd0d
Contents?: true
Size: 524 Bytes
Versions: 27
Compression:
Stored size: 524 Bytes
Contents
# frozen_string_literal: true module Blacklight module Document # Render the 'more like this' results from the response class MoreLikeThisComponent < ::ViewComponent::Base with_collection_parameter :document # @param [Blacklight::Document] document def initialize(document:) @document = document end def render? @document.more_like_this.present? end def link_to_document(*args) @view_context.link_to_document(*args) end end end end
Version data entries
27 entries across 27 versions & 1 rubygems