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
First of all, great gem! This is exactly what I needed for my Rails app.
Unfortunately, I had an issue with associations that have a different name than their class, for reversing relationships with two foreign keys from the same model. Here's what it looks like:
Hi,
First of all, great gem! This is exactly what I needed for my Rails app.
Unfortunately, I had an issue with associations that have a different name than their class, for reversing relationships with two foreign keys from the same model. Here's what it looks like:
I think it's a problem with the way you access the model class. As far as I know, this is what the gem does:
Since ReverseRelationship is not a class, this gives me this error when using recuse_delete: NameError: uninitialized constant ReverseRelationship
It'd be great if you could have this working for associations that use class_name as well.
Thanks!
The text was updated successfully, but these errors were encountered: