Skip to content

Commit b569eb5

Browse files
authored
Fix Rails main compatibility: replace removed find_template with find (#341)
* Initial plan * Fix: replace removed find_template with find in ActionView::LookupContext --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
1 parent d8fd4cd commit b569eb5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/active_agent/concerns/view.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def view_render_template(template_name, strict: false, formats: nil, **locals)
142142

143143
return if !strict && !lookup_context.exists?(template_name, _prefixes, false, [], **options)
144144

145-
template = lookup_context.find_template(template_name, _prefixes, false, [], **options)
145+
template = lookup_context.find(template_name, _prefixes, false, [], **options)
146146

147147
render_to_string(template: template.virtual_path, locals:, layout: false).chomp.presence
148148
end

0 commit comments

Comments
 (0)