Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update incorrect callback documentation #328

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cpjolicoeur
Copy link

@cpjolicoeur cpjolicoeur commented Jan 8, 2025

before_delete is passed the conn and changeset according the the current codebase, it is not based the conn and record itself.

This commit updates the documentation to more accurately reflect the current codebase and the fact that before_delete isn't unique in receive different argument than other before_* callbacks.

IF the intent is/was to actually pass the record itself instead of a changeset to before_delete, please advise and I'll gladly update the PR to make the applicable changes to the callbacks code to accurately reflect the current README documentation (instead of updating the docs to reflect the current code).

`before_delete` is passed the conn and changeset according the the current codebase, it is not based the conn and record itself.

This commit updates the documentation to more accurately reflect the current codebase and the fact that `before_delete` isn't unique in receive different argument than other `before_*` callbacks.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant