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 +4 -4
- data/lib/fields/serializer/action_controller.rb +1 -2
- data/lib/fields/serializer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 968cff087294a5ca3abe9dba8156639eb2a60c7a
|
4
|
+
data.tar.gz: 32764dc22f65232dce5c1bfba8940b968e49245f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|