json_api_resource 3.1.2 → 3.1.3

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: 13e9600501a6f2a21a70a2b13ff8cad8aab22d35
4
- data.tar.gz: dd811f7b87e94f15fbbab5549d50a1bc85869ddb
3
+ metadata.gz: 502e00131cffdcee41b210d599619ff563c31eb7
4
+ data.tar.gz: 1e119324e7c37190565abaa2c2a240191e46a8a1
5
5
  SHA512:
6
- metadata.gz: 140c6a3fd98e22c8049986efc3f426117bf2883197ce01a90b42a6a9d66480e28f1b5c50983fa7f5f28b04dc815bf9d2be9af5b80f9a4fba7a842a51acce8578
7
- data.tar.gz: a595e2e9e54e505cb045db24025a48f9be40c3c196c1b753d9c231e4770beb24dea9a7634883f009c3768057251c0f0b4bb35f2e26828b69d328a1c9dab14e9a
6
+ metadata.gz: 0646c141ba8f767cdf7bfe6b11e17d2de345f3e425424cd99792414f1b89fefdbc1cdde9735c236c67f9ee224a22242cbce8865f57bc04ed9c7cb0b331450c48
7
+ data.tar.gz: c3805f133c008922a34b16a90452cfe3ad28017ca7a97810883c2fec062f8609a405f8a4d92480ba848ebc4f3fd11b651f9451555d540b4bf15a5c75c5fdb27d
@@ -7,6 +7,8 @@ module JsonApiResource
7
7
  def preload ( objects, preloads )
8
8
  objects = Array(objects)
9
9
  preloads = Array(preloads)
10
+
11
+ return objects if objects.empty?
10
12
 
11
13
  preloads.each do |preload|
12
14
 
@@ -1,3 +1,3 @@
1
1
  module JsonApiResource
2
- VERSION = "3.1.2"
2
+ VERSION = "3.1.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_api_resource
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.2
4
+ version: 3.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Sislow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-22 00:00:00.000000000 Z
11
+ date: 2016-08-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_api_client