Correct the tense of a method on SupporterNote
This commit is contained in:
parent
f6ffa42659
commit
e6f83f388b
1 changed files with 2 additions and 2 deletions
|
@ -19,7 +19,7 @@ class SupporterNote < ApplicationRecord
|
||||||
|
|
||||||
after_discard :publish_deleted
|
after_discard :publish_deleted
|
||||||
|
|
||||||
after_create_commit :publish_create
|
after_create_commit :publish_created
|
||||||
after_update_commit :publish_updated
|
after_update_commit :publish_updated
|
||||||
|
|
||||||
# TODO replace with discard gem
|
# TODO replace with discard gem
|
||||||
|
@ -56,7 +56,7 @@ class SupporterNote < ApplicationRecord
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
def publish_create
|
def publish_created
|
||||||
Houdini.event_publisher.announce(:supporter_note_created, to_event('supporter_note.created', :supporter, :nonprofit, :user).attributes!)
|
Houdini.event_publisher.announce(:supporter_note_created, to_event('supporter_note.created', :supporter, :nonprofit, :user).attributes!)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue