Skip to content

Update incorrect callback documentation#328

Open
cpjolicoeur wants to merge 1 commit into
aesmail:masterfrom
cpjolicoeur:patch-1
Open

Update incorrect callback documentation#328
cpjolicoeur wants to merge 1 commit into
aesmail:masterfrom
cpjolicoeur:patch-1

Conversation

@cpjolicoeur

@cpjolicoeur cpjolicoeur commented Jan 8, 2025

Copy link
Copy Markdown

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