Skip to content

Adding Ticket Authors to WatchersΒ #38

@shawnpk

Description

@shawnpk

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions