Class: Notifications::AlsoCommented

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

Instance Method Summary (collapse)

Instance Method Details

- (Object) deleted_translation_key



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

def deleted_translation_key
  'notifications.also_commented_deleted'
end

- (Object) linked_object



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

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

- (Object) mail_job



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

def mail_job
  Workers::Mail::AlsoCommented
end


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

def popup_translation_key
  'notifications.also_commented'
end