hyrax-v2_graph_indexer 0.1.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3c228444cb3d0e2d5c4697fa414b161fffd0ece95d8da488d3a87b2e8216e4eb
4
- data.tar.gz: be4552c5a5c335b1566b21d250379c0834d80673df06b38795b428a91621a58c
3
+ metadata.gz: b29d8f4127a52c91b6eb279e32c632de7cf29059dbacb5c923db096e176e9719
4
+ data.tar.gz: 4f99ea6cf137cfcb9609e5e2ffdc4b5b36c6b2c8f3d1167410f5ae42064b6796
5
5
  SHA512:
6
- metadata.gz: 4dec66cb7d6cbc5c042f58c669283ba91c8f756ff8d5eb4fc0eb5d31aa9d880bc8afaf99feafc9c573050d7bb2f0b1cb85f59cbe2b4e34a2a1aa1f63493d3ba5
7
- data.tar.gz: c8dd13415027c00f77864c057b188658d05996d3f5ed64872f5a7f07336cd8560edd20cccb166de9b18f38ea6581f919cc5ad7cd263e06c8bb269c99a698c5b0
6
+ metadata.gz: 5f212a553aec8a0130097394ff215cf1d2c3bfac5e610bde18f432e3e43e6d5a2d17625ec34e92944f7d2ca56664c333af55a37e7a5cff9936b176de21b5f3e1
7
+ data.tar.gz: e3de271d759e1dfbbdc732d5c8c806c27ffd67b1661066f0a809ec9900980050083120964262b02f46973e341d41a307d3e3037c998eeaad849cc4be515d984c
@@ -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.3.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.3.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-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hyrax