active_record_inherit_assoc 2.12.0 → 2.13.1

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: f7464b4f61c782b150c6100fcf822b5cbc7c3f0efe1c4ba19073caeb97f61c47
4
- data.tar.gz: a03bc5d15df64295725a023d897d58ed7feec22f7b64aff6b179d599d341bc3b
3
+ metadata.gz: 033d47940e3df15f886ad8ecfd7b14b15b7680ad7ec7ef27f34ce7147039c909
4
+ data.tar.gz: d10c8490134d13f2dc76823101dc676d4801b3986a405f09879585e1361b3640
5
5
  SHA512:
6
- metadata.gz: 560b8bb3dbe7e42cb3f7ef7ebdf7a1239d2ecaca856d80f86e50fa76395ee18d86b00701707ddb5aa55433bebc0a3e3b857252f821707119182b2100a1e7c12d
7
- data.tar.gz: 9ad0c5cc7eec65fe81591b68c92d10b496632f9e8de50ab76c5dfcd20a3b02e6d2219c05429225ab16979f07a392c4421e6758dddae0ab2205b4dba9921f8b39
6
+ metadata.gz: 6245bc447cd008fff5df7258a6fa9ba43d43fad3562b411a804ad6b4c01042e6b37d9f5b503ab195d1ae5b2d290ea11ce3eae908dc4e41c5a61304612c15d8bd
7
+ data.tar.gz: c59fbffe50ce299027b9f94b55c7983fcb25fba8a3fe0af45e7e83117a7ac43a6a7f75c920e1120be81f34eb0ff4605251565c885e4c08b88f04132c823ce70a
@@ -33,10 +33,8 @@ module ActiveRecordInheritAssocPrepend
33
33
  end
34
34
  end
35
35
 
36
- if ActiveRecord::VERSION::MAJOR >= 4
37
- def skip_statement_cache?(*)
38
- super || !!reflection.options[:inherit]
39
- end
36
+ def skip_statement_cache?(*)
37
+ super || !!reflection.options[:inherit]
40
38
  end
41
39
  end
42
40
 
@@ -62,7 +60,7 @@ module ActiveRecordInheritPreloadAssocPrepend
62
60
  end
63
61
  end
64
62
 
65
- def scope
63
+ def build_scope
66
64
  prescope = super
67
65
 
68
66
  if inherit = reflection.options[:inherit]
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.12.0
4
+ version: 2.13.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Osheroff
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-21 00:00:00.000000000 Z
11
+ date: 2023-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 5.0.0
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '6.2'
22
+ version: '7.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: 5.0.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '6.2'
32
+ version: '7.1'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: minitest
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -72,20 +72,6 @@ dependencies:
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
- - !ruby/object:Gem::Dependency
76
- name: rails
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- version: '0'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- version: '0'
89
75
  - !ruby/object:Gem::Dependency
90
76
  name: bump
91
77
  requirement: !ruby/object:Gem::Requirement
@@ -128,7 +114,7 @@ dependencies:
128
114
  - - ">="
129
115
  - !ruby/object:Gem::Version
130
116
  version: '0'
131
- description:
117
+ description:
132
118
  email:
133
119
  - ben@gimbo.net
134
120
  executables: []
@@ -140,7 +126,7 @@ homepage: https://github.com/zendesk/active_record_inherit_assoc
140
126
  licenses:
141
127
  - Apache License Version 2.0
142
128
  metadata: {}
143
- post_install_message:
129
+ post_install_message:
144
130
  rdoc_options: []
145
131
  require_paths:
146
132
  - lib
@@ -155,8 +141,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
155
141
  - !ruby/object:Gem::Version
156
142
  version: '0'
157
143
  requirements: []
158
- rubygems_version: 3.1.6
159
- signing_key:
144
+ rubygems_version: 3.0.3.1
145
+ signing_key:
160
146
  specification_version: 4
161
147
  summary: Attribute inheritance for AR associations
162
148
  test_files: []