fields-serializer 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: a605f2f9368ab70ff141b73c43fa45e61c8ce25a
4
- data.tar.gz: de5eb5b39c3cf88e0a72fcb08afc85f97990cf67
3
+ metadata.gz: 1cfbfde43b5e68c8a3b8f9751b2d26900cde08db
4
+ data.tar.gz: 825de6ba6491be0c3be8d0b21df8ddcdf2299599
5
5
  SHA512:
6
- metadata.gz: 3888cff7c99bd8429ffa87c97020672d705c1c67125d77c87e1a0ac7f5b0f43185ebbd68f7b685ddec655136fba0e577a2d9b514ed1c63ecdf20655831a11c57
7
- data.tar.gz: 4ef58173416352bb6a8f060d3662c54667043f3e9ac08213b441be9970531f562813ca57252f4e4c82b34476e5ffe268af59ae1044369677afb0826ff4aa5617
6
+ metadata.gz: '0119c1d7ea09944f8e6d2483b791d3f424ffd873d88226e4b4d5d1822c35c461cc95e6513027cc5bf3013392039962c9f85f1469af7eaee3cfdfc7a87d763314'
7
+ data.tar.gz: fa54f65e8a1f660b65fd773929067e7e5058c2d46a44d01bb4b2970751faa6485a785b6aaae88f9970d4ec2a466283f76a8da7463d3761b2a20cc572bbe7e104
@@ -19,6 +19,7 @@ module Fields
19
19
  if fields
20
20
  query = query.includes(*model_class.fields_to_includes(fields))
21
21
  options.merge!(each_serializer: FieldSerializer, fields: Array(fields))
22
+ options.delete(:include)
22
23
  end
23
24
  render options.merge!(json: query.to_a)
24
25
  end
@@ -1,5 +1,5 @@
1
1
  module Fields
2
2
  module Serializer
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.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.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stuart Chinery
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2017-12-14 00:00:00.000000000 Z
13
+ date: 2017-12-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler