Open lentesta opened 2 years ago
In debugging this issue with activerecord-import, it appears that statsample overrides Array in a way that breaks activerecord-import.
That issue contains a small sample program that reproduces the issue. It seems specific to Array#sum.
The temporary solution I have is to monkey patch the insert_many method in ActiveRecord::Import::MysqlAdapter.
I think the long-term solution would be a fix in statsample. Happy to help with this, if needed.
Yeah, this gem breaks rails. Don't use until this gets fixed.
In debugging this issue with activerecord-import, it appears that statsample overrides Array in a way that breaks activerecord-import.
That issue contains a small sample program that reproduces the issue. It seems specific to Array#sum.
The temporary solution I have is to monkey patch the insert_many method in ActiveRecord::Import::MysqlAdapter.
I think the long-term solution would be a fix in statsample. Happy to help with this, if needed.