activerecord_lax_includes_2 0.1.9 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dddb790f06ae995ae5e40aacdad8b9a61f999eb8
4
- data.tar.gz: d1f2cf79d137b4d7146d5b02261b603c7508650c
3
+ metadata.gz: 32c69bdbe0ba50c8ed011e2cd59d74edff0190ae
4
+ data.tar.gz: c8b820eb9a1eb41f7a5afcc82f56ac8cee8fab06
5
5
  SHA512:
6
- metadata.gz: 7010c841be8f792ccd3dc7b6c120bde80f21ab40d88da5b09a15e3d4101a6720640a7d8fe3dd8b29308f38de83e28f8314df0afbb06380ace5a264065268e5b0
7
- data.tar.gz: 758441502e72068c61952b76f8f0657dd1d351fd1ccd88315adf8b0300387a311f148abfb3af8ab503dac2d0f8125fa87a0f0581d6b32e2d7a61b37fcf97b829
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
- puts "association: #{association.inspect}"
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.1.9
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-26 00:00:00.000000000 Z
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.5.1
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