lib/active_fedora/base.rb in active-fedora-4.0.0.rc9 vs lib/active_fedora/base.rb in active-fedora-4.0.0.rc10
- old
+ new
@@ -368,10 +368,10 @@
raise "Object #{pid} not found in Solr" unless !result.nil? && !solr_doc.nil? && pid == solr_doc[SOLR_DOCUMENT_ID]
else
raise "Solr document record id and pid do not match" unless pid == solr_doc[SOLR_DOCUMENT_ID]
end
- obj = self.allocate.init_with(SolrDigitalObject.new(solr_doc))
+ obj = self.allocate.init_with(SolrDigitalObject.new(solr_doc, self))
#set by default to load any dependent relationship objects from solr as well
#need to call rels_ext once so it exists when iterating over datastreams
obj.rels_ext
obj.datastreams.each_value do |ds|
if ds.respond_to?(:from_solr)