class TestJSONEncoding::CustomWithOptions

Attributes

bar[RW]
foo[RW]

Public Instance Methods

as_json(options = {}) click to toggle source
Calls superclass method
# File activesupport/test/json/encoding_test.rb, line 261
def as_json(options = {})
  options[:only] = %w(foo bar)
  super(options)
end