hyrax-v2_graph_indexer 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c228444cb3d0e2d5c4697fa414b161fffd0ece95d8da488d3a87b2e8216e4eb
4
- data.tar.gz: be4552c5a5c335b1566b21d250379c0834d80673df06b38795b428a91621a58c
3
+ metadata.gz: 7bb825503939624e048d8134fb9fd492838a298e344df4416ab5bec580acd353
4
+ data.tar.gz: 0b23bb53e8683243fc7529d550a222c3c1c404f7fd39c41f62e7484b2467b721
5
5
  SHA512:
6
- metadata.gz: 4dec66cb7d6cbc5c042f58c669283ba91c8f756ff8d5eb4fc0eb5d31aa9d880bc8afaf99feafc9c573050d7bb2f0b1cb85f59cbe2b4e34a2a1aa1f63493d3ba5
7
- data.tar.gz: c8dd13415027c00f77864c057b188658d05996d3f5ed64872f5a7f07336cd8560edd20cccb166de9b18f38ea6581f919cc5ad7cd263e06c8bb269c99a698c5b0
6
+ metadata.gz: e0037d3a59e5fc11b8e35950bc2b81bb3c5fd576e284dff3aeee05318ff497bff73041363d908f4ec6dc1cc975daa5542b9c94c3216c48630eafbc60b5e2fba1
7
+ data.tar.gz: 6448070305ad18fbf1958fd06f68edb7299013aeccaff7e5d045d0882b5bf1bc45c87b90b58f1f6acdc740d1341821a77888b18c4570a1468bfcedebe1ef6435
@@ -15,13 +15,12 @@ module Hyrax
15
15
  Hyrax::V2GraphIndexer::NestedCollectionQueryServiceDecorator::ClassMethods
16
16
  )
17
17
 
18
- Hyrax::WorkBehavior.prepend(
19
- Hyrax::V2GraphIndexer::CollectionNestingDecorator
20
- )
21
-
22
- Hyrax::CollectionBehavior.prepend(
23
- Hyrax::V2GraphIndexer::CollectionNestingDecorator
24
- )
18
+ ActiveFedora::Base.subclasses.each do |subclass|
19
+ if subclass.included_modules.include?(Hyrax::WorkBehavior) ||
20
+ subclass.included_modules.include?(Hyrax::CollectionBehavior)
21
+ subclass.prepend(Hyrax::V2GraphIndexer::CollectionNestingDecorator)
22
+ end
23
+ end
25
24
 
26
25
  Hyrax::Dashboard::NestedCollectionsSearchBuilder.prepend(
27
26
  Hyrax::V2GraphIndexer::NestedCollectionsSearchBuilderDecorator
@@ -1,5 +1,5 @@
1
1
  module Hyrax
2
2
  module V2GraphIndexer
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyrax-v2_graph_indexer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Friesen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-01 00:00:00.000000000 Z
11
+ date: 2023-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hyrax