Just updated a Rails 5 / Ruby 2x app to 7 & 3.3 respectively, and now I’m seeing some class/model naming conventions have changed. One thing is odd to me though. I’ve renamed one from ‘PendingInspUICImitInt’ to ‘PendingInspUicImitInt’ and likewise its model. But now the error being thrown is that it expects all other references to it to still be ‘PendingInspUICImitInt’.
Seen below, error thrown expects lines 4 and 9 to still be ‘PendingInspUICImitInt’ rather than ‘PendingInspUicImitInt’
Why wouldn’t it be expecting the updated ‘PendingInspUicImitInt’?
ActiveAdmin.register PendingInspUicImitInt do
menu false
all_fields = PendingInspUicImitInts.fields
all_fields = all_fields + [:InspectNo, :Permit]
permit_params all_fields
field_special = PendingInspUicImitInts.types
Model for reference:
class PendingInspUicImitInt < ApplicationRecord
self.table_name = "tblPendingUICIMITIntervals"
self.primary_keys = :InspectNo, :Minutes