Skip to content

Commit

Permalink
docs: Change post_relationshp to post_to_relationship(#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
enoonan authored Sep 19, 2024
1 parent b0bab35 commit dbfaaee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documentation/topics/relationships.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ You can also specify routes that are dedicated to manipulating relationships. We
```elixir
routes do
...
# use `post_relationship` when the operation is additive
post_relationship :add_author, action: :add_author
# use `post_to_relationship` when the operation is additive
post_to_relationship :add_author, action: :add_author
# use `patch_relationship` when the operation is both additive and subtractive
# use `delete_from_relationship` when the operation is subtractive
end
Expand Down

0 comments on commit dbfaaee

Please sign in to comment.