You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into some pretty difficult-to-track-down bugs recently while upgrading a codebase from Rails 6.x to 7.x.
(This was exacerbated by the fact that I use ScoutAPM in production, but not staging.)
I was on the very old scout_apm (2.6.10) and upgrading to scout_apm (5.6.1) fixed it.
The specific error I was getting was on all of my models, Incorrect number of arguments passed: 2, expected 3..4, when calling Model.first, Model.find, Model.find_by, etc.
All this to say, I think it might save other developers a headache if there are more guardrails around this.
It could be deprecation warnings, a minimum Rails version set in gemspec, etc. I'm not very familiar with gemspecs or publishing gems--I'm more used to the consumer side of things--so I'm sorry if this issue/suggestion is malinformed.