json_api_responders 1.2.1 → 1.2.2

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: 4940c75cb6f3843cf93e364560efd48fd2f5c204
4
- data.tar.gz: e3d083e4e175e461b3b78dfc31c5688d556bbe9f
3
+ metadata.gz: f59c6c922826e182c6baeb4deae9fb16e7398193
4
+ data.tar.gz: f0a165bad7b6831124174a1e27bd424004972110
5
5
  SHA512:
6
- metadata.gz: 7c232f8cfe3c9195fb423d9dbd86726dd6282cc4cc2f7a9d42fbb93b8dec66973a3ed89997784c51450105a638ffd9b744b1494b5c62cac34fab063cec09f9dd
7
- data.tar.gz: 8a26d806a4113929c6b03ee24c2062244d96ddf38073ed42c53517931269613be0e7adc19a6b0b15a3146d7c5c85d31a47057ded6a39954a7832a0b4a41220db
6
+ metadata.gz: 495a5006f43bab4aaf516932b77a026ca797cfa393a18fe3de3cf5247ee6b8f2b8342df6f425f473ebaaca3278bd6d26ce52988802196c0f3abbd0e9044d646f
7
+ data.tar.gz: 02d861f65f10a1672856e5376556c779bc740300c27c051286fac1eadebf1714a5cd4bba1445b6537ca56ec9e14a6bbb5f1a6571477353d59f17dc4a993a0126
@@ -54,7 +54,7 @@ module JsonApiResponders
54
54
  end
55
55
 
56
56
  def serializer_class
57
- options[:serializer] ||=
57
+ (relation? ? options[:each_serializer] : options[:serializer]) ||
58
58
  [
59
59
  namespace,
60
60
  "#{resource_class}Serializer"
@@ -1,6 +1,6 @@
1
1
  module JsonApiResponders
2
2
  MAJOR = 1
3
3
  MINOR = 2
4
- PATCH = 1
4
+ PATCH = 2
5
5
  VERSION = [MAJOR, MINOR, PATCH].join('.').freeze
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_api_responders
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stanko Krtalić Rusendić
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-28 00:00:00.000000000 Z
11
+ date: 2016-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler