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
The code is looking for a key matching the table name of the association instead of the name of the association itself. The documentation says: "The hash key is the association name".
The text was updated successfully, but these errors were encountered:
If you are able to provide a PR to correct this issue that would be appreciated!
What's the policy on breaking changes? Changing this would be a breaking change. Should the code try to look for both names or should this be a breaking change?
If I have a class structure like this:
And try to import using
recursive_on_duplicate_key_update
, like this:Then activerecord-import won't do an upsert for the association, only for the main records.
The issue is that
options[:recursive_on_duplicate_key_update][table_name]
returnsnil
here:activerecord-import/lib/activerecord-import/import.rb
Line 865 in fca8b82
The code is looking for a key matching the table name of the association instead of the name of the association itself. The documentation says: "The hash key is the association name".
The text was updated successfully, but these errors were encountered: