Created
March 15, 2011 17:54
-
-
Save ahk/871136 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ActivityMailer < ActionMailer::Base | |
def reply(comment, deliver_to_user) | |
@comment = comment | |
mail(:subject => I18n.t(:'activity_mailer.subject', :project_name => project.name, :activity_name => response.activity.short_name), | |
:from => "no-reply@example.com", | |
:to => deliver_to_user.email) | |
end | |
def message(app_message) | |
@body = app_message.text | |
mail(:to => app_message.recipient.email, | |
:subject => "#{app_message.project.name}: #{app_message.subject}", | |
:from => "no-reply@example.com") | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment