Class: Notifications::CommentOnPost

Inherits:
Notification
  • Object
show all
Defined in:
app/models/notifications/comment_on_post.rb

Instance Method Summary collapse

Instance Method Details

#deleted_translation_keyObject


10
11
12
# File 'app/models/notifications/comment_on_post.rb', line 10

def deleted_translation_key
  'notifications.also_commented_deleted'
end

#linked_objectObject


14
15
16
# File 'app/models/notifications/comment_on_post.rb', line 14

def linked_object
  Post.where(:id => self.target_id).first
end

#mail_jobObject


2
3
4
# File 'app/models/notifications/comment_on_post.rb', line 2

def mail_job
  Workers::Mail::CommentOnPost
end

6
7
8
# File 'app/models/notifications/comment_on_post.rb', line 6

def popup_translation_key
  'notifications.comment_on_post'
end