api-blocks 0.5.5 → 0.6.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
  SHA256:
3
- metadata.gz: 867eca270f42b7339503a286c597ee87a84416f5f6d8f1f845fa51675495feab
4
- data.tar.gz: c0dee15ccd07d8ee0463c2a7570af225771421c8e84b4e064135236a21c5704c
3
+ metadata.gz: 708af1617ee8a83ca0ac12f4d5269a3156ee21afab5fa9a0c2b114e03678acb0
4
+ data.tar.gz: 57829eef7e027faa83408359e08ea2a1be36b7672078ba0aca8f39e8548718e2
5
5
  SHA512:
6
- metadata.gz: 7ef452172c3fb99bfa2bf8dfc9e8058eb5c63d4b41c8dfa71ada4ab51363db90bd9a675eee101d924032fb2a96ffdc1fe4dac2eab0f136b277055a2930e90c64
7
- data.tar.gz: a28963d3e7ff821b29946411a86f4635aae07e17c536b1baa7a39d27353a41b54e3296240e2121475df125b8d639183d73558f0fe7a580582928be7aaed04770
6
+ metadata.gz: eaf5aa0a72c25c515acb4d0202c32e8cb12c30586244b631f3a2d5c4a1d75f71fde69ed2774818e5e555c94bc22fe1a85a4f976332bd87fce1332899357bc873
7
+ data.tar.gz: 18fef502d3c1a334036209b6531bc34dc13196ef4c31350116057cbcfe927553870e6d02afd060148ecc5e98f6bb444789d6e552d65d8d7362a93fda0e11b300
@@ -10,6 +10,10 @@ class Blueprinter::AssociationExtractor < Blueprinter::Extractor
10
10
  alias_method :original_extract, :extract
11
11
 
12
12
  def extract(association_name, object, local_options, options = {})
13
+ if !options.fetch(:batch, true)
14
+ return original_extract(association_name, object, local_options, options)
15
+ end
16
+
13
17
  association = object.association(association_name)
14
18
 
15
19
  if association.is_a?(ActiveRecord::Associations::HasManyThroughAssociation)
@@ -2,5 +2,5 @@
2
2
 
3
3
  module ApiBlocks
4
4
  # Current version of ApiBlocks
5
- VERSION = "0.5.5"
5
+ VERSION = "0.6.0"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: api-blocks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul d'Hubert
@@ -226,14 +226,14 @@ dependencies:
226
226
  requirements:
227
227
  - - '='
228
228
  - !ruby/object:Gem::Version
229
- version: 0.80.0
229
+ version: 0.81.0
230
230
  type: :development
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
234
  - - '='
235
235
  - !ruby/object:Gem::Version
236
- version: 0.80.0
236
+ version: 0.81.0
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: yard
239
239
  requirement: !ruby/object:Gem::Requirement