diff --git a/app/models/notifications/question_answered.rb b/app/models/notifications/question_answered.rb new file mode 100644 index 00000000..15b2cadf --- /dev/null +++ b/app/models/notifications/question_answered.rb @@ -0,0 +1,5 @@ +class Notifications::QuestionAnswered < Notification + def linked_object + Answer.where(id: self.target_id).first + end +end \ No newline at end of file