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 import method is shadowed by activerecord-import which results in this argument error: ArgumentError: Invalid arguments! from /some_local_path/activerecord-import-1.2.0/lib/activerecord-import/import.rb:648:in import_helper'`
Ruby doesn't support method overloading so it doesn't recognize any other definition. I'm guessing only the most recent for that class / module. Just wanted to point this out for anyone who runs into the same issue since AR import gem is pretty popular, 47 MM downloads.
My hot fix was to remove AR import, bundle and run the import. This won't work for anyone who runs a periodic import job.
I'd be happy to alias the method and make a PR.
The text was updated successfully, but these errors were encountered:
I did a similar proxy by creating an elastic_import method that I call when importing records;
# Need to create another way to access elasticsearch import.# class.import is using by activerecord-import, I thinkdefself.elastic_import__elasticsearch__.importend
The import method is shadowed by activerecord-import which results in this argument error:
ArgumentError: Invalid arguments! from /some_local_path/activerecord-import-1.2.0/lib/activerecord-import/import.rb:648:in
import_helper'`Ruby doesn't support method overloading so it doesn't recognize any other definition. I'm guessing only the most recent for that class / module. Just wanted to point this out for anyone who runs into the same issue since AR import gem is pretty popular, 47 MM downloads.
My hot fix was to remove AR import, bundle and run the import. This won't work for anyone who runs a periodic import job.
I'd be happy to alias the method and make a PR.
The text was updated successfully, but these errors were encountered: