json_api_resource 2.1.0 → 2.1.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: 1a98d0f34c68af51a8ca8102d654530cc3a7691f
4
- data.tar.gz: 7732d5602b998a4cdfeeb3678a8cef65e9fb9438
3
+ metadata.gz: fa7a8562ec59679608e899b037a242b64e114959
4
+ data.tar.gz: 7bcdd0f4acacc40908fe073251c4e8c7c15a3667
5
5
  SHA512:
6
- metadata.gz: b6f67e35c272601c73a80bb89fc3af1d817f5f029ba5d76dad4474cac1fe20fd27f045929c1f41478595938b5aa2ff3abc915a663e0c029292df3d41e254d7ec
7
- data.tar.gz: cff9b7c9fab81866d7942adbd47d55f8a23534b63f8655e0507136ab0628d9991d60f5ec28eb5e7c69ccb948fb8d6ce326dcd2cc8ee1b9051b251480359f643f
6
+ metadata.gz: d6d46ca22cfe063c8352fc81d4435a8339784209804583c6cb3b3f46982190f68210a17af91ea151f0263bc5e55510dce386a2a52c4fd1caad4ca4a830a1783f
7
+ data.tar.gz: 9d013ba61fcefd2493f97e109413da4371618a18341e9e23903ff4d216e679c47d8cd7ba86842774c5455550163a243143923b32a8dcad090f46ced425e991b8
@@ -9,7 +9,8 @@ module JsonApiResource
9
9
 
10
10
  def request( action, *args )
11
11
 
12
- result = self.client.send action, *args
12
+ client_args = args.deep_dup
13
+ result = self.client.send action, *client_args
13
14
 
14
15
  if result.is_a? JsonApiClient::Scope
15
16
  result = result.all
@@ -7,6 +7,7 @@ require 'active_model'
7
7
  require 'active_model/model'
8
8
  require 'active_model/validations'
9
9
  require 'active_model/callbacks'
10
+ require 'active_support/core_ext/object/deep_dup'
10
11
 
11
12
  module JsonApiResource
12
13
  class Resource
@@ -1,3 +1,3 @@
1
1
  module JsonApiResource
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
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: 2.1.0
4
+ version: 2.1.1
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-04-14 00:00:00.000000000 Z
11
+ date: 2016-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_api_client