Skip to content

Commit 2977197

Browse files
committed
Rename private props method in renderer to computed_props to avoid collision with the keyword argument in the initializer
1 parent 30d7555 commit 2977197

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/inertia_rails/renderer.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def layout
4242
@controller.send(:inertia_layout)
4343
end
4444

45-
def props
45+
def computed_props
4646
_props = ::InertiaRails.shared_data(@controller).send(prop_merge_method, @props).select do |key, prop|
4747
if rendering_partial_component?
4848
key.in? partial_keys
@@ -57,7 +57,7 @@ def props
5757
def page
5858
{
5959
component: component,
60-
props: props,
60+
props: computed_props,
6161
url: @request.original_fullpath,
6262
version: ::InertiaRails.version,
6363
}

0 commit comments

Comments
 (0)