Simplify User.comment_notifiable scope

This commit is contained in:
Andrew Kvalheim 2022-03-31 17:30:50 -07:00
parent c9f410e68a
commit 9d4af0dcd3
4 changed files with 8 additions and 10 deletions

View file

@ -57,13 +57,13 @@ class Comment < ApplicationRecord
commentable_str.constantize.find(commentable_id)
end
def conference_id
commentable.program.conference_id
end
private
def send_notification
EventCommentMailJob.perform_later(self)
end
def conference_id
commentable.program.conference_id
end
end