Method: UserNotifier#follow_up_comment_notice_anonymous

Defined in:
app/models/user_notifier.rb

#follow_up_comment_notice_anonymous(email, comment) ⇒ Object



57
58
59
60
61
62
63
64
65
66
67
68
# File 'app/models/user_notifier.rb', line 57

def follow_up_comment_notice_anonymous(email, comment)
  @recipients  = "#{email}"

  @subject     = "[#{configatron.community_name}] "
  @sent_on     = Time.now
  @subject     += "#{:has_commented_on_something_that_you_also_commented_on.l(:user => comment.username, :item => comment.commentable_type)}"
  @url  = commentable_url(comment)
  @comment = comment

  @unsubscribe_link = url_for(:controller => 'comments', :action => 'unsubscribe', :commentable_type => comment.commentable_type, :commentable_id => comment.commentable_id, :id => comment.id, :token => comment.token_for(email), :email => email)
  mail(:to => @recipients, :subject => @subject)    
end