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 hooks.md #317

Open
stevensolarz opened this issue Dec 1, 2024 · 1 comment
Open

Update hooks.md #317

stevensolarz opened this issue Dec 1, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@stevensolarz
Copy link

website/docs/models/hooks.md is out of date

  • remove BeforeUpsertHooks and AfterUpsertHooks (lines 20:21)
  • Update 'Registering hooks' section (line 39)
## Registering hooks

A hook can be registered with the `AppendHooks` method:

userTable.BeforeUpdateHooks.AppendHooks(myHook)

I'd submit a PR but I don't have permission!

@stephenafamo
Copy link
Owner

Yes, unfortunately, several parts of the docs are now out of date.

You can send in a PR by creating a fork and making changes on your fork. Any help is appreciated.

@stephenafamo stephenafamo added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants