iknow_view_models 3.1.5 → 3.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/iknow_view_models/version.rb +1 -1
- data/lib/view_model/traversal_context.rb +6 -4
- 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: 6fc1b45c59ce7be7ea1052ef27c81bf46ca556ed5d36119cf35cd3b8ecb5b07a
|
4
|
+
data.tar.gz: a667a697d8c71947884707f99d9d2bc6cb53361565cf153c8e28186a92b8e7db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c30f535e0a125a591519b1a7de0101176031afcff50d1656388cacf7bc8dc1f400c816ccefc19f7a0454fbb768911801c25ab4335ea567cab55d354f4a70aeae
|
7
|
+
data.tar.gz: d2a75cde7251e75ce400544efc02f19890edec7604131fad67ccaa8ddd37f6e51af8b72f14c3b40f33ef219c278558f550cbcabb4aad4d05fff5b0549612fc4b
|
@@ -93,13 +93,15 @@ class ViewModel::TraversalContext
|
|
93
93
|
end
|
94
94
|
|
95
95
|
def run_callback(hook, view, **args)
|
96
|
-
|
97
|
-
|
98
|
-
end
|
99
|
-
|
96
|
+
# Run in-viewmodel callback hooks before context hooks, as they are
|
97
|
+
# permitted to alter the model.
|
100
98
|
if view.respond_to?(hook.dsl_viewmodel_callback_method)
|
101
99
|
view.public_send(hook.dsl_viewmodel_callback_method, hook.context_name => self, **args)
|
102
100
|
end
|
101
|
+
|
102
|
+
callbacks.each do |callback|
|
103
|
+
callback.run_callback(hook, view, self, **args)
|
104
|
+
end
|
103
105
|
end
|
104
106
|
|
105
107
|
def root?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iknow_view_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- iKnow Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|