From e6f83f388b704981d1a0a48df708ce5720177374 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Mon, 1 Feb 2021 17:17:14 -0600 Subject: [PATCH] Correct the tense of a method on SupporterNote --- app/models/supporter_note.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/supporter_note.rb b/app/models/supporter_note.rb index 35423b30..a674d1bc 100644 --- a/app/models/supporter_note.rb +++ b/app/models/supporter_note.rb @@ -19,7 +19,7 @@ class SupporterNote < ApplicationRecord after_discard :publish_deleted - after_create_commit :publish_create + after_create_commit :publish_created after_update_commit :publish_updated # TODO replace with discard gem @@ -56,7 +56,7 @@ class SupporterNote < ApplicationRecord end private - def publish_create + def publish_created Houdini.event_publisher.announce(:supporter_note_created, to_event('supporter_note.created', :supporter, :nonprofit, :user).attributes!) end