Class: Notifications::Liked

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

Instance Method Summary collapse

Instance Method Details

#deleted_translation_keyObject


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

def deleted_translation_key
  'notifications.liked_post_deleted'
end

#linked_objectObject


14
15
16
17
18
# File 'app/models/notifications/liked.rb', line 14

def linked_object
  post = self.target
  post = post.target if post.is_a? Like
  post
end

#mail_jobObject


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

def mail_job
  Workers::Mail::Liked
end

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

def popup_translation_key
  'notifications.liked'
end