Skip to content

Commit

Permalink
Surface in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspth committed May 19, 2024
1 parent fdef4e5 commit ae41221
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,12 @@ class Post::Publisher < ActiveRecord::AssociatedObject
end
```
### Use the generator to help write Associated Objects
To set up the `Post::Publisher` from above, you can call `bin/rails generate associated Post::Publisher`.
See `bin/rails generate associated --help` for more info.
### Forwarding callbacks onto the associated object
To further help illustrate how your collaborator Associated Objects interact with your domain model, you can forward callbacks.
Expand Down

0 comments on commit ae41221

Please sign in to comment.