Skip to content

Commit

Permalink
Removed unnecessary html_safe
Browse files Browse the repository at this point in the history
  • Loading branch information
steveyken committed Sep 3, 2014
1 parent 1fdb4f1 commit ebda75a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/polymorphic/email.rb
Expand Up @@ -41,9 +41,9 @@ def body; super; end

def body_with_textile
if defined?(RedCloth)
RedCloth.new(body_without_textile).to_html.html_safe
RedCloth.new(body_without_textile).to_html
else
body_without_textile.to_s.gsub("\n", "<br/>").html_safe
body_without_textile.to_s.gsub("\n", "<br/>")
end
end
alias_method_chain :body, :textile
Expand Down

0 comments on commit ebda75a

Please sign in to comment.