aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorGodfrey Chan <godfreykfc@gmail.com>2013-12-01 01:58:06 -0800
committerGodfrey Chan <godfreykfc@gmail.com>2013-12-01 01:58:06 -0800
commit9fbf4518722d09b3d86d183d882cefc7f79d73d0 (patch)
tree419c17a51dc4a2b192e2fc6dbc732f5707d4dab4 /activesupport
parent49ff20d9b164693ed7fee880b69cc14b141678b3 (diff)
downloadrails-9fbf4518722d09b3d86d183d882cefc7f79d73d0.tar.gz
rails-9fbf4518722d09b3d86d183d882cefc7f79d73d0.tar.bz2
rails-9fbf4518722d09b3d86d183d882cefc7f79d73d0.zip
EscapedString is also private API [ci skip]
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/lib/active_support/json/encoding.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/json/encoding.rb b/activesupport/lib/active_support/json/encoding.rb
index 935dd88a03..eb25ef7a4c 100644
--- a/activesupport/lib/active_support/json/encoding.rb
+++ b/activesupport/lib/active_support/json/encoding.rb
@@ -48,7 +48,7 @@ module ActiveSupport
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