activerecord_lax_includes_2 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/activerecord_lax_includes.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83f21e06bf35db5de9dce104a8dd83bbdd6c1693
|
4
|
+
data.tar.gz: c1dd8f1698e24cf5b0090d3c1c94573ff42b8850
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b828fa984798d7a86076abc7f6092014e53ef0e5a60e753ec94b28efcfab638dbafce4359b5909e743f1c32f86ecdcf438bb5f77205e90cd3dfa6931ccc68c8f
|
7
|
+
data.tar.gz: 0114e7b10e4bdf5a4cbfe122dc4f920a4fb71531335f65a45c81cb1a3e6d14754a0ad118a30b36d89c111176b362d55516d3d0f2267e9a1d69bda0d9f8a50a55
|
@@ -65,7 +65,7 @@ module ActiveRecordLaxIncludes
|
|
65
65
|
|
66
66
|
def preloaders_for_one(association, records, scope, options = {})
|
67
67
|
grouped = grouped_records(association, records)
|
68
|
-
if ActiveRecord.lax_includes_enabled? && records.any? && grouped.none? && !options[:polymorphic]
|
68
|
+
if !ActiveRecord.lax_includes_enabled? && records.any? && grouped.none? && !options[:polymorphic]
|
69
69
|
raise ActiveRecord::AssociationNotFoundError.new(records.first.class, association)
|
70
70
|
end
|
71
71
|
|