Closed thoughtbot-boost-support closed 1 year ago
We found there there was a method overwriting the all
method from ActiveHash::Base that was causing the issue. The method was removed and we were able to upgrade the active_hash gem without breaking the code.
I have recently updated my app to rails 7.0.5 and Ruby 3.2.2. It looks like the files that were inheriting from ActiveHash::Base now no longer have access to Active Record methods. They are treated as an array of hashes. I have not changed the code for them, I only updated the gems.
The repo is private so I'm not sure what I can share. The rest of the team is off work already so I will have to wait until tomorrow to find out what I can share.
example of code
Doodle::DisplayMode.find(1).name
Error