Source

RubyLearning / ProjectTrak / vendor / rails / activesupport / lib / active_support / json / encoders / object.rb

Full commit
1
2
3
4
5
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