Skip to content

Commit

Permalink
Changing ProjectMailer's from to fix weird bug
Browse files Browse the repository at this point in the history
  • Loading branch information
danielweinmann committed Feb 9, 2012
1 parent 641c014 commit 97d7ff1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/mailers/projects_mailer.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
class ProjectsMailer < ActionMailer::Base
include ERB::Util
default :from => "#{I18n.t('site.name')} <#{I18n.t('site.email.system')}>"

def start_project_email(about, rewards, links, contact, user, user_url)
@about = h(about).gsub("\n", "<br>").html_safe
Expand All @@ -9,6 +8,6 @@ def start_project_email(about, rewards, links, contact, user, user_url)
@contact = contact
@user = user
@user_url = user_url
mail(:to => I18n.t('site.email.projects'), :subject => I18n.t('projects_mailer.start_project_email.subject', :name => @user.name))
mail(:from => "#{I18n.t('site.name')} <#{I18n.t('site.email.system')}>", :to => I18n.t('site.email.projects'), :subject => I18n.t('projects_mailer.start_project_email.subject', :name => @user.name))
end
end

0 comments on commit 97d7ff1

Please sign in to comment.