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:
parent
491ab85207
commit
d1d1a2dee7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue