You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Chapter 11 deals with sending emails and adding watchers. Upon finishing this chapter, I noticed that we don't actually add the ticket author to the watchers. In spec/features/ticket_notifications_spec.rb, we assign 'Alice' directly to the ticket.watchers, but I don' see anywhere in the code where we actually assign the ticket author to the watchers.
I fixed this by adding @ticket.watchers << @ticket.author in the create action of the TicketsController.
This is in the version generated on 2021-02-12 from 0a83c5577 in the epub version.
The text was updated successfully, but these errors were encountered:
You're right! This should really be added before the "Previewing emails" section in Chapter 11. I'll leave this open so we can address it next time we run through the book.
Chapter 11 deals with sending emails and adding watchers. Upon finishing this chapter, I noticed that we don't actually add the ticket author to the watchers. In
spec/features/ticket_notifications_spec.rb
, we assign 'Alice' directly to theticket.watchers
, but I don' see anywhere in the code where we actually assign the ticket author to the watchers.I fixed this by adding
@ticket.watchers << @ticket.author
in thecreate
action of theTicketsController
.This is in the version generated on 2021-02-12 from 0a83c5577 in the epub version.
The text was updated successfully, but these errors were encountered: