Skip to content

Commit

Permalink
try a more flexible approach to creating the list of collection classes
Browse files Browse the repository at this point in the history
  • Loading branch information
elrayle committed Oct 29, 2021
1 parent 78f6490 commit ed369e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/hyrax/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -683,7 +683,9 @@ def collection_class
##
# @return [Class] the configured collection model class & Hyrax::PcdmCollection
def collection_classes
[collection_model.constantize, Hyrax::PcdmCollection].uniq
klasses = [collection_class, Hyrax::PcdmCollection]
klasses << ::Collection if defined? ::Collection
klasses.uniq
end

attr_writer :admin_set_model
Expand Down

0 comments on commit ed369e2

Please sign in to comment.