Sha256: ecc08ca10d5cd2ee4fff54d5f6292baa78bee0ba9cb953b4bdcc9b57c914a8f5

Contents?: true

Size: 244 Bytes

Versions: 147

Compression:

Stored size: 244 Bytes

Contents

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

Version data entries

147 entries across 116 versions & 14 rubygems

Version Path
gemstreamer-1.1.0 spec/assets/testapp/vendor/rails/activesupport/lib/active_support/json/encoders/object.rb
gemstreamer-1.0.0 spec/assets/testapp/vendor/rails/activesupport/lib/active_support/json/encoders/object.rb
gemstreamer-0.0.0 spec/assets/testapp/vendor/rails/activesupport/lib/active_support/json/encoders/object.rb
radiant-rc-0.9.0 vendor/rails/activesupport/lib/active_support/json/encoders/object.rb
radiant-0.8.1 vendor/rails/activesupport/lib/active_support/json/encoders/object.rb
activesupport-2.3.4 lib/active_support/json/encoders/object.rb
activesupport-2.3.3 lib/active_support/json/encoders/object.rb