Skip to content

Move business logic out of Transaction model callbacks #39

@urielhdz

Description

@urielhdz

The Transaction model uses an after_create :update_balances callback to update account balances. This is business logic that should be handled in a service object or command, not in a model callback. Refactor to move this logic out of the model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions