Simplify User.comment_notifiable scope
This commit is contained in:
parent
c9f410e68a
commit
9d4af0dcd3
4 changed files with 8 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue