namespaced model support

This commit is contained in:
Dylan Knutson
2025-07-16 18:31:28 +00:00
parent fe0f7b9bbe
commit f3990e2654
2 changed files with 38 additions and 1 deletions

View File

@@ -251,7 +251,7 @@ module HasAuxTable
# Get the current class for the association
main_class = self
main_association_name = T.must(main_class.name&.underscore&.to_sym)
main_association_name = foreign_key.to_s.delete_suffix("_id").to_sym
# Create the auxiliary model class
aux_class =