app/repository_models/curation_concern/model.rb in curate-0.6.1 vs app/repository_models/curation_concern/model.rb in curate-0.6.3
- old
+ new
@@ -61,10 +61,10 @@
def index_collection_pids(solr_doc)
solr_doc[Solrizer.solr_name(:collection, :facetable)] ||= []
solr_doc[Solrizer.solr_name(:collection)] ||= []
self.collection_ids.each do |collection_id|
collection_obj = ActiveFedora::Base.load_instance_from_solr(collection_id)
- if collection_obj.class == Collection
+ if collection_obj.is_a?(Collection)
solr_doc[Solrizer.solr_name(:collection, :facetable)] << collection_id
solr_doc[Solrizer.solr_name(:collection)] << collection_id
end
end
solr_doc