Remove unused mailer

openid
Marcin Kulik 11 years ago
parent 0fffcbd187
commit 9c224ce894

@ -1,15 +0,0 @@
class UserMailer < ActionMailer::Base
default :from => "asciinema <hello@asciinema.org>"
helper :application
def new_comment_email(user, comment)
@comment = comment
@author = UserDecorator.new(comment.user)
@asciicast = AsciicastDecorator.new(@comment.asciicast)
user = UserDecorator.new(user)
to = "#{user.nickname} <#{user.email}>"
subject = %(New comment for #{@asciicast.title})
mail :to => to, :subject => subject
end
end

@ -1,8 +0,0 @@
Howdy!
<%= @author.nickname %> (<%= profile_url(@author) %>) commented on your asciicast "<%= @asciicast.title %>":
<%= indented_text @comment.body, 4 %>
---
http://asciinema.org/

@ -1,5 +0,0 @@
require "spec_helper"
describe UserMailer do
pending "add some examples to (or delete) #{__FILE__}"
end
Loading…
Cancel
Save