Skip to content

Commit 38c8082

Browse files
author
Nils Henning
committed
[FEATURE] add view context to render_component method
1 parent 2ec0b8d commit 38c8082

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/helpers/matestack/ui/core/application_helper.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ def render_page(page_class, only_page=false)
1515
def render_component(page_class, component_key)
1616
page_class.new(nil, context: {
1717
params: params,
18-
request: request
18+
request: request,
19+
view_context: view_context
1920
}, controller_instance: self).call(:show, component_key)
2021
end
2122

0 commit comments

Comments
 (0)