Skip to content

Commit

Permalink
add multiple forewords
Browse files Browse the repository at this point in the history
  • Loading branch information
ezekg committed Aug 12, 2024
1 parent d1cd47d commit 4399510
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,9 @@ book = Book.create(title: 'I, Robot', author:)
# assign a preface by the author
Preface.create(user: author, book:)

# assign a foreword writer
# assign foreword writers
Foreword.create(user: writer, book:)
Foreword.create(user: editor, book:)

# assign an illustrator
Illustration.create(user: illustrator, book:)
Expand Down
1 change: 1 addition & 0 deletions spec/union_of_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1415,6 +1415,7 @@ def owned = where(owner: proxy_association.owner)

Preface.create(user: author, book:)
Foreword.create(user: writer, book:)
Foreword.create(user: editor, book:)
Illustration.create(user: illustrator, book:)
Edit.create(user: editor, book:)

Expand Down

0 comments on commit 4399510

Please sign in to comment.