From 720511f828f95f71a48ad21ca53b4f83e49c66a5 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 13d769e..45ee506 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 :call_number, predicate: ::Tufts::Vocab::Tufts.call_number do |index| index.as :stored_searchable