Sha256: ec7aa83eb45451d8f54e8479029e07769f7ee03eb13a232c914375051eef16cd
Contents?: true
Size: 518 Bytes
Versions: 3
Compression:
Stored size: 518 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) helpers.link_to_document(*args) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems