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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32c69bdbe0ba50c8ed011e2cd59d74edff0190ae
4
- data.tar.gz: c8b820eb9a1eb41f7a5afcc82f56ac8cee8fab06
3
+ metadata.gz: 83f21e06bf35db5de9dce104a8dd83bbdd6c1693
4
+ data.tar.gz: c1dd8f1698e24cf5b0090d3c1c94573ff42b8850
5
5
  SHA512:
6
- metadata.gz: f758784fba775a01621c1c25168212c5a516600e1ab2774b0b5be4f37920e07bc8e8022dabef39abeaaf3d3930f7e28da6806a5a266927b7509ea9eb013bab01
7
- data.tar.gz: 13fb3b8c07d874060136a26e6cf7f36d28aefdc80116d9d89afbdf136e4f73bf91fb7ee49447c481147ec66d80afb4dae309b62bed0991995fe3b00a34b9e08b
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord_lax_includes_2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Charles Barbier