Errors like the following were recorded in New Relic:
undefined local variable or method `scoped' for #<Class:0x000000000b0c6448> Did you mean? scope unscoped
//var/app/current/app/models/measurement:rb:27:in `nearby_to'
scoped class method has been deprecated since Rails 5. There was deprecation warning like:
DEPRECATION WARNING: Model.scoped is deprecated. Please use Model.all instead.
Errors like the following were recorded in New Relic:
scoped
class method has been deprecated since Rails 5. There was deprecation warning like:But, we missed it when upgrading to Rails 5.