graphiti-activegraph 0.1.4 → 0.1.5

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
  SHA256:
3
- metadata.gz: 414cf4ca5fa4c6027a87a9af43c47041ffee42b746ab148b29ffc2dc452fcda9
4
- data.tar.gz: 952da258c8b891c1165e26a13ac6c4c2a8377842a5c353d8a1d329d91b2f0c26
3
+ metadata.gz: 86e444b42125b6ca0ea4ee646da76b3aa49a2d3b3f4ff0f73ea1a4a251b90763
4
+ data.tar.gz: 0d7b9e6c6b0d1f9d51222726fdeedfa05d94bb9cb45594dbf407cdaccd984ec8
5
5
  SHA512:
6
- metadata.gz: 50e809c41a2ccbdade72af95a4391102fb204ede9a0477149fa4810112c379d301f8807046d5a44362cc6a68c4b22c5932b2f1b45478b63a9f2e8afb1df66c16
7
- data.tar.gz: 7bd4274635d96ccdd65fb2d041efb12a1df07042d8a207218af1d13c91c4e8beb067c2bffecc20c9f5e0ceeccc9cf965d14f30fa14e36eefbfc23a752947ab90
6
+ metadata.gz: d60996c7490c1e05da9b878919fbe30457bdbbde8abd914c92375eedf223b09f3d0330a0ac37243633f1bcf74ca36805cea5842cb1ed9ee3883cb54f3b9efd81
7
+ data.tar.gz: 5e0029d82a7d93563a32dbf7a513092f800dcf1d1de875c5b3ccfed317543ea76d7707ee932512d2b9367f262089abb24ae86a8ad65368c0601a3363099c6c87
@@ -25,6 +25,9 @@ module Graphiti
25
25
  runner = ::Graphiti::Runner.new(self, params)
26
26
  runner.proxy(nil, raise_on_missing: false, preloaded: obj_arr)
27
27
  end
28
+
29
+ def guard_nil_id!(params)
30
+ end
28
31
  end
29
32
 
30
33
  module ResourceInstanceMethods
@@ -57,7 +57,7 @@ module Graphiti::ActiveGraph
57
57
  original = Graphiti.context[:namespace]
58
58
  begin
59
59
  Graphiti.context[:namespace] = action
60
- ::Graphiti::RequestValidator.new(@resource, @payload.params).validate!
60
+ ::Graphiti::RequestValidator.new(@resource, @payload.params, action).validate!
61
61
  validator = persist {
62
62
  @resource.persist_with_relationships \
63
63
  @payload.meta(action: action),
@@ -6,7 +6,7 @@ module Graphiti::ActiveGraph
6
6
  @query = query
7
7
  @action = action
8
8
 
9
- validator = ::Graphiti::RequestValidator.new(jsonapi_resource, params)
9
+ validator = ::Graphiti::RequestValidator.new(jsonapi_resource, params, action)
10
10
 
11
11
  validator.validate! unless params[:skip_render_val]
12
12
 
@@ -1,5 +1,5 @@
1
1
  module Graphiti
2
2
  module ActiveGraph
3
- VERSION = '0.1.4'
3
+ VERSION = '0.1.5'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphiti-activegraph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hardik Joshi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-01 00:00:00.000000000 Z
11
+ date: 2020-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: graphiti