active_record_inherit_assoc 2.13.2 → 2.14.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: 830cb20b871ff992546a33184d3500a1183e7cd4e1df05cad2f0768ec680030a
4
- data.tar.gz: dc9a12b47b24b76ab3bb59034f47197b318c39b9459f3cec9a1af3f30859ce6b
3
+ metadata.gz: 16bf88b015995589afc4fd4bf6102a0c7ee857dff718e7c1b7dcb091867c68f1
4
+ data.tar.gz: '019b29db12b175296f8ac3504bedf8628fce1a4e608b1c5d435ab5acb99b3d89'
5
5
  SHA512:
6
- metadata.gz: 02a6f40b515745ad43f0a5432771482a1d654907f42f7460136d1e1eb968f3ce53ff3bc4e51efedaab0e07e6a84292b20a0b86ad813c86bc78fd2a7fd5a11c46
7
- data.tar.gz: 9e358b39f8b675afd2761f25c4b566c9931ffab6c07d95a05f183383992bc80b83f70e4611a9409718216126f7eac8f6c3d9b763927731d2d92394eccf9d0ae2
6
+ metadata.gz: 49cf9ad42190cb93fc234a2fa396ec1cbd6f4902f1e8b16bb8434f656c79f12b24fa51cf6e2f538e76293fa24c63475996b76bfb5cd4d369acd1874defcbef31
7
+ data.tar.gz: cca80e63d3a84e26d153d65ec8ad4f9bc1faff19c5f401920d478e831280b726c6ca47c306d00826434d03de9ca688f411909cb291038d6b64fa64d889767294
@@ -41,23 +41,12 @@ end
41
41
  ActiveRecord::Associations::Association.send(:prepend, ActiveRecordInheritAssocPrepend)
42
42
 
43
43
  module ActiveRecordInheritPreloadAssocPrepend
44
- if ActiveRecord::VERSION::STRING < '5.2.0'
45
- def associated_records_by_owner(*)
46
- super.tap do |result|
47
- next unless inherit = reflection.options[:inherit]
48
- result.each do |owner, associated_records|
49
- filter_associated_records_with_inherit!(owner, associated_records, inherit)
50
- end
51
- end
52
- end
53
- else
54
- def associate_records_to_owner(owner, records)
55
- if inherit = reflection.options[:inherit]
56
- records = Array(records)
57
- filter_associated_records_with_inherit!(owner, records, inherit)
58
- end
59
- super
44
+ def associate_records_to_owner(owner, records)
45
+ if inherit = reflection.options[:inherit]
46
+ records = Array(records)
47
+ filter_associated_records_with_inherit!(owner, records, inherit)
60
48
  end
49
+ super
61
50
  end
62
51
 
63
52
  def build_scope
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_record_inherit_assoc
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.13.2
4
+ version: 2.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Osheroff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-19 00:00:00.000000000 Z
11
+ date: 2024-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,20 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 5.0.0
20
- - - "<"
21
- - !ruby/object:Gem::Version
22
- version: '7.2'
19
+ version: '6.1'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - ">="
28
25
  - !ruby/object:Gem::Version
29
- version: 5.0.0
30
- - - "<"
31
- - !ruby/object:Gem::Version
32
- version: '7.2'
26
+ version: '6.1'
33
27
  description:
34
28
  email:
35
29
  - ben@gimbo.net
@@ -50,14 +44,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
50
44
  requirements:
51
45
  - - ">="
52
46
  - !ruby/object:Gem::Version
53
- version: '2.6'
47
+ version: '3.1'
54
48
  required_rubygems_version: !ruby/object:Gem::Requirement
55
49
  requirements:
56
50
  - - ">="
57
51
  - !ruby/object:Gem::Version
58
52
  version: '0'
59
53
  requirements: []
60
- rubygems_version: 3.0.3.1
54
+ rubygems_version: 3.5.11
61
55
  signing_key:
62
56
  specification_version: 4
63
57
  summary: Attribute inheritance for AR associations