json_api_responders 1.2.0 → 1.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: f946d1d9791b1b6c4e5b8a1b290b3633898bfcf3
4
- data.tar.gz: d707790e981069721420111ee48534f580bc1c18
3
+ metadata.gz: 4940c75cb6f3843cf93e364560efd48fd2f5c204
4
+ data.tar.gz: e3d083e4e175e461b3b78dfc31c5688d556bbe9f
5
5
  SHA512:
6
- metadata.gz: fb90d5911dca38902fcbd7bc52fc6d190b636794d56ab2ef023a6a09893b68e800b262d40a54a26403cf29af44c82f159d23142312e906a5006a3fcae7434c62
7
- data.tar.gz: ccd67920264e53221a5faf90e4360534d32ea0a1d1dd6a169d3058cec3e357e1f2026c7c60d18666bc55edf3c5b6ad0ef4c88f1a5763330a1744991153584f62
6
+ metadata.gz: 7c232f8cfe3c9195fb423d9dbd86726dd6282cc4cc2f7a9d42fbb93b8dec66973a3ed89997784c51450105a638ffd9b744b1494b5c62cac34fab063cec09f9dd
7
+ data.tar.gz: 8a26d806a4113929c6b03ee24c2062244d96ddf38073ed42c53517931269613be0e7adc19a6b0b15a3146d7c5c85d31a47057ded6a39954a7832a0b4a41220db
@@ -48,7 +48,8 @@ module JsonApiResponders
48
48
  render_options.merge(
49
49
  json: resource,
50
50
  serializer_key => serializer_class,
51
- include: options[:include]
51
+ include: options[:include],
52
+ meta: options[:meta]
52
53
  )
53
54
  end
54
55
 
@@ -66,7 +67,7 @@ module JsonApiResponders
66
67
  end
67
68
 
68
69
  def relation?
69
- resource.is_a?(ActiveRecord::Relation)
70
+ resource.is_a?(ActiveRecord::Relation) || resource.is_a?(Array)
70
71
  end
71
72
  end
72
73
  end
@@ -1,6 +1,6 @@
1
1
  module JsonApiResponders
2
2
  MAJOR = 1
3
3
  MINOR = 2
4
- PATCH = 0
4
+ PATCH = 1
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.0
4
+ version: 1.2.1
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-06-24 00:00:00.000000000 Z
11
+ date: 2016-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler