Skip to content

Wrong number of arguments error when delete overridden in model #5

@james-ai

Description

@james-ai

I get a wrong number of arguments (1 for 0) error when trying to delete an object. I have overridden the delete method in the model so when someone tries to remove an object a deleted flag is set and the object is left in the database.

Seems the problem happens here https://github.com/haihappen/mongoid-versioning/blob/master/lib/mongoid/core_ext/versioning.rb#L50

Don't suppose you'd have a fix in mind for this, would you?

Thanks,
James.

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