Skip to content

Commit 7c3152a

Browse files
call shared_data directly without send method
1 parent 4349026 commit 7c3152a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/inertia_rails/renderer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def computed_props
4646
#
4747
# Functionally, this permits using either string or symbol keys in the controller. Since the results
4848
# is cast to json, we should treat string/symbol keys as identical.
49-
_props = @controller.send(:shared_data).merge.deep_symbolize_keys.send(prop_merge_method, @props.deep_symbolize_keys).select do |key, prop|
49+
_props = @controller.shared_data.merge.deep_symbolize_keys.send(prop_merge_method, @props.deep_symbolize_keys).select do |key, prop|
5050
if rendering_partial_component?
5151
key.in? partial_keys
5252
else

0 commit comments

Comments
 (0)