From d9b77e636c44ea90b428731a32e625fb78b3a327 Mon Sep 17 00:00:00 2001 From: Mike Korcynski Date: Wed, 12 Jul 2023 16:40:36 -0400 Subject: [PATCH] bring in line with nurax --- lib/tufts/curation/collection.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/tufts/curation/collection.rb b/lib/tufts/curation/collection.rb index 6469956..1d631e4 100644 --- a/lib/tufts/curation/collection.rb +++ b/lib/tufts/curation/collection.rb @@ -10,14 +10,14 @@ class Collection < ActiveFedora::Base # If it is unavailable, we skip loading the complex behavior and settle for having # `Hyrax::CoreMetadata` and `Hyrax::BasicMetadata` in place. def self.inherited(subclass) - subclass.include 'Hyrax::CollectionBehavior'.constantize + subclass.include '::Hyrax::CollectionBehavior'.constantize subclass.indexer = Hyrax::CollectionWithBasicMetadataIndexer rescue NameError => e warn 'Hyrax::CollectionBehavior is unavailable; skipping inclusion ' \ "in #{subclass}.\n#{e}" end - include Hyrax::CoreMetadata + include Hyrax::BasicMetadata property :ead, predicate: ::Tufts::Vocab::Tufts.has_description do |index| index.as :stored_searchable