namespaced model support
This commit is contained in:
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user