Skip to content

Fix Rails main compatibility: replace removed find_template with find#341

Merged
TonsOfFun merged 2 commits into
mainfrom
copilot/fix-github-actions-job-failure
Jun 25, 2026
Merged

Fix Rails main compatibility: replace removed find_template with find#341
TonsOfFun merged 2 commits into
mainfrom
copilot/fix-github-actions-job-failure

Conversation

Copilot AI commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

ActionView::LookupContext#find_template was removed in Rails main — it was a long-deprecated alias for find. This caused 48 errors across the test suite when running against railsmain.gemfile.

Change

  • lib/active_agent/concerns/view.rb: Replace lookup_context.find_template(...) with lookup_context.find(...) — identical signature, backward-compatible with Rails 7.2+.
# Before
template = lookup_context.find_template(template_name, _prefixes, false, [], **options)

# After
template = lookup_context.find(template_name, _prefixes, false, [], **options)

Copilot AI changed the title [WIP] Fix failing GitHub Actions job test (3.4, gemfiles/railsmain.gemfile) Fix Rails main compatibility: replace removed find_template with find Jun 25, 2026
Copilot AI requested a review from TonsOfFun June 25, 2026 18:19
@TonsOfFun TonsOfFun marked this pull request as ready for review June 25, 2026 18:26
@TonsOfFun TonsOfFun merged commit b569eb5 into main Jun 25, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants