lib/solrizer/fedora/solrizer.rb in solrizer-fedora-1.1.2 vs lib/solrizer/fedora/solrizer.rb in solrizer-fedora-1.1.3
- old
+ new
@@ -44,10 +44,10 @@
start = Time.now
logger.debug "SOLRIZER Retrieving object #{obj} ..."
- if obj.instance_of? ActiveFedora::Base
+ if obj.kind_of? ActiveFedora::Base
# do nothing
elsif obj.kind_of? String
obj = Repository.get_object( obj )
elsif obj.respond_to? :pid
obj = Repository.get_object( obj.pid )