Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Keep more backward compatibility by trying the html_safe call.

  • Loading branch information...
commit 46c18e7d14f2f55cabcdfa61bf4648ae7af05f64 1 parent 6d806ca
@nbibler authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.