Froze rails gems
[depot.git] / vendor / rails / activesupport / lib / active_support / json / encoders / object.rb
diff --git a/vendor/rails/activesupport/lib/active_support/json/encoders/object.rb b/vendor/rails/activesupport/lib/active_support/json/encoders/object.rb
new file mode 100644 (file)
index 0000000..ca215d4
--- /dev/null
@@ -0,0 +1,6 @@
+class Object
+  # Dumps object in JSON (JavaScript Object Notation). See www.json.org for more info.
+  def to_json(options = {})
+    ActiveSupport::JSON.encode(instance_values, options)
+  end
+end