Froze rails gems
[depot.git] / vendor / rails / activesupport / lib / active_support / json.rb
diff --git a/vendor/rails/activesupport/lib/active_support/json.rb b/vendor/rails/activesupport/lib/active_support/json.rb
new file mode 100644 (file)
index 0000000..2bdb4a7
--- /dev/null
@@ -0,0 +1,23 @@
+module ActiveSupport
+  # If true, use ISO 8601 format for dates and times. Otherwise, fall back to the Active Support legacy format.
+  mattr_accessor :use_standard_json_time_format
+
+  class << self
+    def escape_html_entities_in_json
+      @escape_html_entities_in_json
+    end
+
+    def escape_html_entities_in_json=(value)
+      ActiveSupport::JSON::Encoding.escape_regex = \
+        if value
+          /[\010\f\n\r\t"\\><&]/
+        else
+          /[\010\f\n\r\t"\\]/
+        end
+      @escape_html_entities_in_json = value
+    end
+  end
+end
+
+require 'active_support/json/encoding'
+require 'active_support/json/decoding'