Skip to content

Commit

Permalink
bring in line with nurax
Browse files Browse the repository at this point in the history
  • Loading branch information
mkorcy committed Jul 12, 2023
1 parent 6354447 commit d9b77e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/tufts/curation/collection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9b77e6

Please sign in to comment.