Skip to content

Conversation

@lucaasscm
Copy link
Contributor

@lucaasscm lucaasscm commented Dec 9, 2025

https://github.com/FestaLab/festalab-app/pull/9120

This PR will be needed to fix the following error that was happening after de bundle upgrade on our dependency updates.
The error was happening on line 91 of the vitals_image/lib/vitals_image/engine.rb: file, when we called the TagHelper before it was initialized by the application.

"bin/rails aborted!
18:58:58 web.1 | /home/lucas/code/Festalab/vitals_image/lib/vitals_image/engine.rb:91:in 'block (2 levels) in class:Engine': uninitialized constant VitalsImage::TagHelper (NameError)
18:58:58 web.1 | helper VitalsImage::TagHelper
18:58:58 web.1 | from /home/lucas/.local/share/mise/installs/ruby/3.4.4/lib/ruby/gems/3.4.0/bundler/gems/rails-45d7ba97b07e/activesupport/lib/active_support/lazy_load_hooks.rb:97:in 'Module#class_eval'

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes an initialization order issue that occurred after a bundle upgrade, where VitalsImage::TagHelper was being referenced before it was loaded, causing an uninitialized constant error.

  • Adds explicit require for the TagHelper module to ensure it's loaded before use
  • Addresses a breaking change introduced by dependency updates affecting module loading order

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@lucaasscm lucaasscm marked this pull request as ready for review December 10, 2025 13:25
@thiagofloriano thiagofloriano merged commit 00a5a0e into main Dec 10, 2025
0 of 2 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