Skip to content

Commit a03e09c

Browse files
author
Gabe Scholz
committed
Fix variable name
1 parent 1cf9e18 commit a03e09c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/react/rails/controller_helper.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ module ControllerHelper
66
# a template from the app/views folder.
77
#
88
def render_react_component(name, args = {}, options = {}, &block)
9-
__react_render_component_args = {
9+
__render_react_component_args = {
1010
inline: '<%= react_component(*@__react_component_args, &@__react_component_block) %>',
1111
layout: options.delete(:layout) || _layout.virtual_path
1212
}
1313

1414
if status = options.delete(:status)
15-
__react_render_component_args.merge!(status: status)
15+
__render_react_component_args.merge!(status: status)
1616
end
1717

1818
@__react_component_args = [name, args, options]
1919
@__react_component_block = block
2020

21-
render __react_render_component_args
21+
render __render_react_component_args
2222
end
2323

2424
end

0 commit comments

Comments
 (0)