Skip to content

Userstamps not set when updating/creating children #6

@ghost

Description

Hello,

When one updates or creates children with complex forms using accept_nested_attributes_for, the userstamps don't get updated for the modified children.

I think instead of using a before and after filter in the Stampable module, you should use an alias_method_chain (e.g. base.alias_method_chain :create, :userstamps) as in Rails' Timestamp module.

This worked for me

Regards

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