activerecord_lax_includes_2 0.2.1 → 0.2.2
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 +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bf66c2053db14fcbf05fd17d17211d5418c7f6e
|
4
|
+
data.tar.gz: ce7825154c270ab6c18d56912e31a6d4ca37a486
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0636328e9906eb5d1261ac1afdf11fede036f5f425ec5d99ee5a653c234380dbef247630d63006b5766e1f46b8536245f188a407cfa7717c8fcb08a3b0826e00
|
7
|
+
data.tar.gz: 1a83eef4643c7effd67ee9f25b5f425099d1a6fc7837a82fc0f70e4006cb3ec46bc5ef14419efeb45bad45f88dc12e78845df69cdbc722701f052389e653b4ec
|
@@ -66,7 +66,7 @@ module ActiveRecordLaxIncludes
|
|
66
66
|
def preloaders_for_one(association, records, scope, options = {})
|
67
67
|
grouped = grouped_records(association, records)
|
68
68
|
if !ActiveRecord.lax_includes_enabled? && records.any? && grouped.none? && !options[:polymorphic]
|
69
|
-
raise ActiveRecord::AssociationNotFoundError.new(records.first
|
69
|
+
raise ActiveRecord::AssociationNotFoundError.new(records.first, association)
|
70
70
|
end
|
71
71
|
|
72
72
|
grouped.flat_map do |reflection, klasses|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activerecord_lax_includes_2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charles Barbier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: unixcharles@gmail.com
|