Browse files

Keep more backward compatibility by trying the html_safe call.

  • Loading branch information...
1 parent 6d806ca commit 46c18e7d14f2f55cabcdfa61bf4648ae7af05f64 @nbibler committed Sep 24, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/simplepay/helpers/form_helper.rb
View
2 lib/simplepay/helpers/form_helper.rb
@@ -8,7 +8,7 @@ def self.tag(name, options = nil, open = false)
end
def self.content_tag(name, content, options = nil)
- "<#{name}#{tag_options(options)}>#{content}</#{name}>".html_safe
+ "<#{name}#{tag_options(options)}>#{content}</#{name}>".try(:html_safe)
end

0 comments on commit 46c18e7

Please sign in to comment.