From 6a914d43940a6440fd0ce79d6daf6ba844412cec Mon Sep 17 00:00:00 2001 From: nilsding Date: Sun, 14 Dec 2014 14:44:25 +0100 Subject: [PATCH] added this thing --- app/models/notifications/question_answered.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 app/models/notifications/question_answered.rb 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