Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/mailers/notification_mailers/mentioned_in_comment.rb')
-rw-r--r--app/mailers/notification_mailers/mentioned_in_comment.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/mailers/notification_mailers/mentioned_in_comment.rb b/app/mailers/notification_mailers/mentioned_in_comment.rb
new file mode 100644
index 000000000..abb346ea8
--- /dev/null
+++ b/app/mailers/notification_mailers/mentioned_in_comment.rb
@@ -0,0 +1,11 @@
+module NotificationMailers
+ class MentionedInComment < NotificationMailers::Base
+ attr_reader :comment
+
+ def set_headers(target_id) # rubocop:disable Style/AccessorMethodName
+ @comment = Mention.find_by_id(target_id).mentions_container
+
+ @headers[:subject] = I18n.t("notifier.mentioned.subject", name: @sender.name)
+ end
+ end
+end