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 +4 -4
- data/lib/deep_unrest/version.rb +1 -1
- data/lib/deep_unrest/write.rb +3 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd904080ca3e663bf6e313f0b7c865cab32121f2f22ed02b89ebe28886092232
|
4
|
+
data.tar.gz: 2de79ffc0cefad4e403b60981f306fb4ca05d1485c88ba4a0396373f2f46c920
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92304e27f64f7c15dd870e65f814a0ad690230a324d801680f69e9b3103025afdfdd873c69a9511dc8fda133d1527625986b38a652bcd61867d15d866375277e
|
7
|
+
data.tar.gz: a879168e0ac312802e28dfbdc71f8e4851f0a462e32c00ea0c3898865dbd37c72bddabd6940e7c8c225e8cb93204c0ff68e7a3e6844239cc2abf67d9025b5f51
|
data/lib/deep_unrest/version.rb
CHANGED
data/lib/deep_unrest/write.rb
CHANGED
@@ -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] =
|
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
|
-
|
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.
|
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-
|
11
|
+
date: 2021-10-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|