class RenderersTest::JsonRenderable

Public Instance Methods

as_json(options = {}) click to toggle source
# File actionpack/test/controller/renderers_test.rb, line 15
def as_json(options = {})
  hash = { a: :b, c: :d, e: :f }
  hash.except!(*options[:except]) if options[:except]
  hash
end
to_json(options = {}) click to toggle source
Calls superclass method
# File actionpack/test/controller/renderers_test.rb, line 21
def to_json(options = {})
  super except: [:c, :e]
end