fields-serializer 0.6.0 → 0.6.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: 18a49cde603d26bd1720c5efc9a626d89460debd
4
- data.tar.gz: ee1496bfa7c568d657e280678c505705d3ecae1e
3
+ metadata.gz: 968cff087294a5ca3abe9dba8156639eb2a60c7a
4
+ data.tar.gz: 32764dc22f65232dce5c1bfba8940b968e49245f
5
5
  SHA512:
6
- metadata.gz: 0f437546ad70fe765da4d1e8e4cdef5be4cbd1d42d91f3b7621428927b656852b90f2e322e607ced987190a04004d14334ef15fa4ba4a2daa8896d3259be71e9
7
- data.tar.gz: 47fc5594fe431a1855f6a388041bcc33c3e832eb2cfcc9b3de054501fcc0acaa9a583f428eea3ab10d51c8af7daba0c2db33eed12776d67f4ce8fa8d239db3d6
6
+ metadata.gz: 46e56499debd139d9292746fac8e46ecc112a73a5f61811cbd1acbe31ab95e3cf437c2d4aad3a2ba7c1a52674c5c619d62ac66cfee2319ddf1c49d3f12e1e783
7
+ data.tar.gz: 7e0709ed97e68ccadf161a2329bdf6580b70b78fd5c76256814bf44901e1f969c39a7feb21cfeb92c98124780b76afe465aff2fb73498038f23636a9049dd872
@@ -18,8 +18,7 @@ module Fields
18
18
  model_class = options.delete(:model_class)
19
19
  if fields.present?
20
20
  query = query.includes(*model_class.fields_to_includes(fields))
21
- options.merge!(each_serializer: model_class.fields_serializer(fields))
22
- options.delete(:include)
21
+ options.merge!(each_serializer: model_class.fields_serializer(fields), include: "**")
23
22
  end
24
23
  render options.merge!(json: query.to_a)
25
24
  end
@@ -1,5 +1,5 @@
1
1
  module Fields
2
2
  module Serializer
3
- VERSION = "0.6.0"
3
+ VERSION = "0.6.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fields-serializer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Chinery