root/trunk/activesupport/lib/active_support/json/encoders/object.rb
| Revision 9093, 195 bytes (checked in by pratik, 2 years ago) |
|---|
| Line | |
|---|---|
| 1 | class Object |
| 2 | # Dumps object in JSON (JavaScript Object Notation). See www.json.org for more info. |
| 3 | def to_json(options = {}) |
| 4 | ActiveSupport::JSON.encode(instance_values, options) |
| 5 | end |
| 6 | end |
Note: See TracBrowser for help on using the browser.