1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

template_exists? takes keyword arguments

This commit is contained in:
Akira Matsuda 2019-09-23 22:51:25 +09:00
parent 491ab85207
commit d1d1a2dee7

View file

@ -93,7 +93,7 @@ module ActionView
end
rescue ActionView::MissingTemplate
all_details = @details.merge(formats: @lookup_context.default_formats)
raise unless template_exists?(layout, nil, false, [], all_details)
raise unless template_exists?(layout, nil, false, [], **all_details)
end
when Proc
resolve_layout(layout.call(@lookup_context, formats), keys, formats)