Permalink
Browse files

EscapedString is also private API [ci skip]

  • Loading branch information...
1 parent 49ff20d commit 9fbf4518722d09b3d86d183d882cefc7f79d73d0 @chancancode chancancode committed Dec 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/json/encoding.rb
View
2 activesupport/lib/active_support/json/encoding.rb
@@ -48,7 +48,7 @@ def encode(value)
ESCAPE_REGEX_WITHOUT_HTML_ENTITIES = /[\u2028\u2029]/u
# This class wraps all the strings we see and does the extra escaping
- class EscapedString < String
+ class EscapedString < String #:nodoc:
def to_json(*)
if Encoding.escape_html_entities_in_json
super.gsub ESCAPE_REGEX_WITH_HTML_ENTITIES, ESCAPED_CHARS

0 comments on commit 9fbf451

Please sign in to comment.