Sha256: 3038e0ec63ca21fff04fa5f00765339fb3626a4619274a63f12f3d6e6205a2bc
Contents?: true
Size: 517 Bytes
Versions: 1
Compression:
Stored size: 517 Bytes
Contents
module Spotlight::SolrDocument module Finder extend ActiveSupport::Concern module ClassMethods def find(id) solr_response = index.find(id) solr_response.documents.first end def index @index ||= blacklight_config.repository_class.new(blacklight_config) end protected def blacklight_config @conf ||= Spotlight::Engine.blacklight_config end end def blacklight_solr self.class.index.connection end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight-spotlight-0.4.1 | app/models/concerns/spotlight/solr_document/finder.rb |