Add notifications for affiliations.
To test:
Make sure you have redis and maildev running
-
bundle exec rails db:drop
-
bundle exec rails db:create
-
bundle exec rails db:schema:load
-
bundle exec rails db:seed:development:users
-
bundle exec rails db:seed:development:spaces
-
bundle exec rails db:seed:development:projects
-
bundle exec sidekiq -C config/sidekiq.yml
-
bundle exec rails c
-
Project.first.add_affiliation_to(Space.first)
you'll see an email about a pending affiliation -
Affiliation.first.accepted!
you'll see an email about an accepted affiliation -
Space.first.remove_affiliate(Project.first)
you'll see an email about a destroyed affiliation -
Project.first.add_affiliation_to(Space.first)
you'll see another email about pending affiliation -
Space.first.remove_affiliate(Project.first)
you'll see an email about a rejected affiliation
Closes issue 781