Created
September 4, 2012 13:19
-
-
Save chriscarter90/3621094 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 AbuseEmail | |
include Rails.application.routes.url_helpers | |
def self.to | |
"abuse@kweekweek.com" | |
end | |
def self.subject | |
"Reported Comment" | |
end | |
def self.body(comment) | |
<<-BODY | |
An abusive comment has been reported at the following address: | |
#{activity_url(comment.activity)} | |
The comment contains the following message: | |
"#{comment.body}" | |
BODY | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment