From 4399510e1a4244d8135c164f360b790b244216c1 Mon Sep 17 00:00:00 2001 From: Zeke Gabrielse Date: Mon, 12 Aug 2024 15:37:30 -0500 Subject: [PATCH] add multiple forewords --- README.md | 3 ++- spec/union_of_spec.rb | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 96cd21c..c8eb288 100644 --- a/README.md +++ b/README.md @@ -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:) diff --git a/spec/union_of_spec.rb b/spec/union_of_spec.rb index 2d6a1af..cae8045 100644 --- a/spec/union_of_spec.rb +++ b/spec/union_of_spec.rb @@ -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:)