Sha256: bdb9f58adea5f6c8e47f9b398a3683f17335779cc050350e5e8edf20d22a8ea4
Contents?: true
Size: 753 Bytes
Versions: 1
Compression:
Stored size: 753 Bytes
Contents
class SimpleDiscussion::UserMailer < ApplicationMailer # You can set the default `from` address in ApplicationMailer helper SimpleDiscussion::ForumPostsHelper helper SimpleDiscussion::Engine.routes.url_helpers def new_thread(forum_thread, recipient) @forum_thread = forum_thread @forum_post = forum_thread.forum_posts.first @recipient = recipient mail( to: "#{@recipient.name} <#{@recipient.email}>", subject: @forum_thread.title ) end def new_post(forum_post, recipient) @forum_post = forum_post @forum_thread = forum_post.forum_thread @recipient = recipient mail( to: "#{@recipient.name} <#{@recipient.email}>", subject: "New post in #{@forum_thread.title}" ) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
simple_discussion-1.3.0 | app/mailers/simple_discussion/user_mailer.rb |