Skip to content

Commit

Permalink
Add silence_warnings block (GH rails#3927)
Browse files Browse the repository at this point in the history
  • Loading branch information
kennyj committed Dec 11, 2011
1 parent 78de996 commit 8ab52d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def html_escape(s)
if s.html_safe?
s
else
s.gsub(/[&"><]/n) { |special| HTML_ESCAPE[special] }.html_safe
silence_warnings { s.gsub(/[&"><]/n) { |special| HTML_ESCAPE[special] }.html_safe }
end
end

Expand Down

0 comments on commit 8ab52d2

Please sign in to comment.