664552ac02
Update to latest Rails. A little bit of jiggery-pokery is involved, since they neglected to re-include vendored Rack in this release.
11 lines
244 B
Ruby
11 lines
244 B
Ruby
class Object
|
|
# Dumps object in JSON (JavaScript Object Notation). See www.json.org for more info.
|
|
def to_json(options = nil)
|
|
ActiveSupport::JSON.encode(as_json(options))
|
|
end
|
|
|
|
def as_json(options = nil)
|
|
instance_values
|
|
end
|
|
end
|