activerecord_lax_includes_2 0.1.9 → 0.2.0
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 -6
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32c69bdbe0ba50c8ed011e2cd59d74edff0190ae
|
4
|
+
data.tar.gz: c8b820eb9a1eb41f7a5afcc82f56ac8cee8fab06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f758784fba775a01621c1c25168212c5a516600e1ab2774b0b5be4f37920e07bc8e8022dabef39abeaaf3d3930f7e28da6806a5a266927b7509ea9eb013bab01
|
7
|
+
data.tar.gz: 13fb3b8c07d874060136a26e6cf7f36d28aefdc80116d9d89afbdf136e4f73bf91fb7ee49447c481147ec66d80afb4dae309b62bed0991995fe3b00a34b9e08b
|
@@ -65,12 +65,7 @@ module ActiveRecordLaxIncludes
|
|
65
65
|
|
66
66
|
def preloaders_for_one(association, records, scope, options = {})
|
67
67
|
grouped = grouped_records(association, records)
|
68
|
-
|
69
|
-
puts "records: #{records.inspect}"
|
70
|
-
puts "scope: #{scope.inspect}"
|
71
|
-
puts "grouped: #{grouped.inspect}"
|
72
|
-
puts "options: #{options.inspect}"
|
73
|
-
if !ActiveRecord.lax_includes_enabled? && records.any? && grouped.none? && !options[:polymorphic]
|
68
|
+
if ActiveRecord.lax_includes_enabled? && records.any? && grouped.none? && !options[:polymorphic]
|
74
69
|
raise ActiveRecord::AssociationNotFoundError.new(records.first.class, association)
|
75
70
|
end
|
76
71
|
|
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.
|
4
|
+
version: 0.2.0
|
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-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: unixcharles@gmail.com
|
@@ -38,7 +38,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
38
38
|
version: '0'
|
39
39
|
requirements: []
|
40
40
|
rubyforge_project:
|
41
|
-
rubygems_version: 2.
|
41
|
+
rubygems_version: 2.4.8
|
42
42
|
signing_key:
|
43
43
|
specification_version: 4
|
44
44
|
summary: Hotfix nested eager loading for polymorphic and STI relation in ActiveRecord
|