view_component_reflex 2.3.3 → 2.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f2a565e11e260df4ecff60b182ac977b06af1407052226ce61b250a19b544248
|
|
4
|
+
data.tar.gz: ba3c11853c040b5fe55efa64567017dc70d564bfc159c3cc5eeda17b8c4e1115
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ff941b717b380704a83fde6e6afb82417ce219684023eb9984c3b08285f108b92b8aab922d24a60990a551c126acd9e1b0f53c94700fc2e38a403cf7ef185855
|
|
7
|
+
data.tar.gz: 5d01502b50d7ecf0407eaea0dd1a7e34cee26f23c5b2cc9124b3f210c184452199363b1d429db7754bfb07955e17416b10888b8fc502977825baa5049b524b9a
|
|
@@ -74,6 +74,7 @@ module ViewComponentReflex
|
|
|
74
74
|
tag = opts_or_tag
|
|
75
75
|
opts
|
|
76
76
|
end
|
|
77
|
+
|
|
77
78
|
options[:data] = {
|
|
78
79
|
controller: self.class.stimulus_controller,
|
|
79
80
|
key: key,
|
|
@@ -95,7 +96,7 @@ module ViewComponentReflex
|
|
|
95
96
|
# and line number, which should be unique. We hash it to make it a nice number
|
|
96
97
|
erb_file = caller.select { |p| p.match? /.\.html\.(haml|erb|slim)/ }[1]
|
|
97
98
|
key = if erb_file
|
|
98
|
-
Digest::SHA2.hexdigest(erb_file)
|
|
99
|
+
Digest::SHA2.hexdigest(erb_file.split(":in")[0])
|
|
99
100
|
else
|
|
100
101
|
""
|
|
101
102
|
end
|
|
@@ -151,7 +152,7 @@ module ViewComponentReflex
|
|
|
151
152
|
ViewComponentReflex::Engine.state_adapter.state(request, @key).each do |k, v|
|
|
152
153
|
instance_value = instance_variable_get(k)
|
|
153
154
|
if permit_parameter?(initial_state[k], instance_value)
|
|
154
|
-
ViewComponentReflex::Engine.state_adapter.set_state(request, controller, "#{@key}_initial", {k => instance_value})
|
|
155
|
+
# ViewComponentReflex::Engine.state_adapter.set_state(request, controller, "#{@key}_initial", {k => instance_value})
|
|
155
156
|
ViewComponentReflex::Engine.state_adapter.set_state(request, controller, @key, {k => instance_value})
|
|
156
157
|
else
|
|
157
158
|
instance_variable_set(k, v)
|