Skip to content

statsample override of array#sum conflicts with gem activerecord-import #56

@lentesta

Description

@lentesta

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions