goldiloader 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/goldiloader/active_record_patches.rb +3 -6
- data/lib/goldiloader/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c918c5a42d411af88cbf257884d28de6e6c05516c4dbfa598e66e7b5fb54a620
|
4
|
+
data.tar.gz: 78fc565f12ba0261c1afac3db2f5392ac4b5516b7c5542e6ca4d9bce3d9c3685
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa47be314d4124457dd1dcefecc3b7d6895594706d0555db45ea21e7c332d10fffe5487050324fbfb4fac5dfd48b7afdd87a6e171b8dbaab59416657ef108e8c
|
7
|
+
data.tar.gz: b41b5372296c6dcedc799d55aba82aa952ca5aea469d701411c4eaacbcfc0faee538ad8d16900fda3592c3050caf8d36f54e2e47dda45618d98a059f8c587fa3
|
@@ -47,7 +47,6 @@ module Goldiloader
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def auto_include_value
|
50
|
-
# Note: Don't use get_value because that doesn't work properly with defaulting boolean values
|
51
50
|
@values.fetch(:auto_include, true)
|
52
51
|
end
|
53
52
|
|
@@ -55,13 +54,11 @@ module Goldiloader
|
|
55
54
|
if Goldiloader::Compatibility.rails_4?
|
56
55
|
raise ::ActiveRecord::Relation::ImmutableRelation if @loaded
|
57
56
|
check_cached_relation
|
58
|
-
@values[:auto_include] = value
|
59
|
-
elsif Goldiloader::Compatibility.rails_5_0?
|
60
|
-
assert_mutability!
|
61
|
-
@values[:auto_include] = value
|
62
57
|
else
|
63
|
-
|
58
|
+
assert_mutability!
|
64
59
|
end
|
60
|
+
|
61
|
+
@values[:auto_include] = value
|
65
62
|
end
|
66
63
|
end
|
67
64
|
::ActiveRecord::Relation.prepend(::Goldiloader::RelationPatch)
|
data/lib/goldiloader/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: goldiloader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel Turkel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -180,16 +180,16 @@ dependencies:
|
|
180
180
|
name: sqlite3
|
181
181
|
requirement: !ruby/object:Gem::Requirement
|
182
182
|
requirements:
|
183
|
-
- - "
|
183
|
+
- - "~>"
|
184
184
|
- !ruby/object:Gem::Version
|
185
|
-
version: '
|
185
|
+
version: '1.3'
|
186
186
|
type: :development
|
187
187
|
prerelease: false
|
188
188
|
version_requirements: !ruby/object:Gem::Requirement
|
189
189
|
requirements:
|
190
|
-
- - "
|
190
|
+
- - "~>"
|
191
191
|
- !ruby/object:Gem::Version
|
192
|
-
version: '
|
192
|
+
version: '1.3'
|
193
193
|
description: Automatically eager loads Rails associations as associations are traversed
|
194
194
|
email:
|
195
195
|
- jturkel@salsify.com
|
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
230
230
|
version: '0'
|
231
231
|
requirements: []
|
232
232
|
rubyforge_project:
|
233
|
-
rubygems_version: 2.
|
233
|
+
rubygems_version: 2.7.8
|
234
234
|
signing_key:
|
235
235
|
specification_version: 4
|
236
236
|
summary: Automatic Rails association eager loading
|