Sha256: 15379c9e32f4cab7c92ca26a849046a9e0817e9ad7a6e3bee03d6da780ed5710

Contents?: true

Size: 324 Bytes

Versions: 19

Compression:

Stored size: 324 Bytes

Contents

# frozen_string_literal: true

module Blacklight
  class DocumentFactory
    def self.build(data, response, options)
      document_model(data, options).new(data, response)
    end

    def self.document_model(_data, options)
      options[:solr_document_model] || options[:document_model] || SolrDocument
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
blacklight-7.11.1 app/services/blacklight/document_factory.rb
blacklight-7.10.0 app/services/blacklight/document_factory.rb
blacklight-7.9.0 app/services/blacklight/document_factory.rb
blacklight-7.8.1 app/services/blacklight/document_factory.rb
blacklight-7.8.0 app/services/blacklight/document_factory.rb
blacklight-7.7.0 app/services/blacklight/document_factory.rb
blacklight-7.6.0 app/services/blacklight/document_factory.rb
blacklight-7.5.1 app/services/blacklight/document_factory.rb
blacklight-7.5.0 app/services/blacklight/document_factory.rb
blacklight-7.4.2 app/services/blacklight/document_factory.rb
blacklight-7.4.1 app/services/blacklight/document_factory.rb
blacklight-7.4.0 app/services/blacklight/document_factory.rb
blacklight-7.3.0 app/services/blacklight/document_factory.rb
blacklight-7.2.0 app/services/blacklight/document_factory.rb
blacklight-7.1.0 app/services/blacklight/document_factory.rb
blacklight-7.1.0.alpha app/services/blacklight/document_factory.rb
blacklight-7.0.1 app/services/blacklight/document_factory.rb
blacklight-7.0.0 app/services/blacklight/document_factory.rb
blacklight-7.0.0.rc2 app/services/blacklight/document_factory.rb