Froze rails gems
[depot.git] / vendor / rails / activesupport / lib / active_support / json.rb
1 module ActiveSupport
2 # If true, use ISO 8601 format for dates and times. Otherwise, fall back to the Active Support legacy format.
3 mattr_accessor :use_standard_json_time_format
4
5 class << self
6 def escape_html_entities_in_json
7 @escape_html_entities_in_json
8 end
9
10 def escape_html_entities_in_json=(value)
11 ActiveSupport::JSON::Encoding.escape_regex = \
12 if value
13 /[\010\f\n\r\t"\\><&]/
14 else
15 /[\010\f\n\r\t"\\]/
16 end
17 @escape_html_entities_in_json = value
18 end
19 end
20 end
21
22 require 'active_support/json/encoding'
23 require 'active_support/json/decoding'