deep_unrest 0.1.74 → 0.1.75

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: f9f759a8a661f9e17e38792d8a1b1525f2366c554c37b21708671fd4cfc63124
4
- data.tar.gz: 57866a9548c6efd013e57872fe34423b710e76783aa23ad7798f5c2ff6aad279
3
+ metadata.gz: fd904080ca3e663bf6e313f0b7c865cab32121f2f22ed02b89ebe28886092232
4
+ data.tar.gz: 2de79ffc0cefad4e403b60981f306fb4ca05d1485c88ba4a0396373f2f46c920
5
5
  SHA512:
6
- metadata.gz: b50e0b5ab780e76598391fdca43ec421b6274594bc4654a5757bf761e1fcfb165a0452f6a24fa1dfd5894db3b53ab2a3d0d61b9fb287a2afef220b43fab9cb7c
7
- data.tar.gz: 994156063a734d4e729789fb677a1f7a091f884d357d7eee0eaa3cb58c95ef7a49651eeaf641204548eb53b1188dca2fea14df32fd75b6cb66cf376fae3be3f9
6
+ metadata.gz: 92304e27f64f7c15dd870e65f814a0ad690230a324d801680f69e9b3103025afdfdd873c69a9511dc8fda133d1527625986b38a652bcd61867d15d866375277e
7
+ data.tar.gz: a879168e0ac312802e28dfbdc71f8e4851f0a462e32c00ea0c3898865dbd37c72bddabd6940e7c8c225e8cb93204c0ff68e7a3e6844239cc2abf67d9025b5f51
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeepUnrest
4
- VERSION = '0.1.74'
4
+ VERSION = '0.1.75'
5
5
  end
@@ -110,7 +110,7 @@ module DeepUnrest
110
110
  update_body[:_destroy] = true if item.dig(:query, :destroy)
111
111
  DeepUnrest.set_attr(memo, item[:ar_addr].clone, update_body)
112
112
  if item[:ar_addr].size == 1
113
- item[:mutate] = memo.fetch(*item[:ar_addr])
113
+ item[:mutate] = update_body
114
114
  item[:scope_type] = :update if item[:scope_type] == :show
115
115
  end
116
116
  end
@@ -142,9 +142,10 @@ module DeepUnrest
142
142
  when :destroy
143
143
  id = item.dig(:query, :id)
144
144
  model = item[:klass].find(id)
145
+ model.deep_unrest_query_uuid = item.dig(:query, :uuid)
145
146
  resource = item[:resource].new(model, context)
146
147
  resource.run_callbacks :remove do
147
- item[:klass].destroy(id)
148
+ model.destroy!
148
149
  end
149
150
  end
150
151
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deep_unrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.74
4
+ version: 0.1.75
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lynn Hurley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-31 00:00:00.000000000 Z
11
+ date: 2021-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails