class MetalRenderingJsonController::Model

Public Instance Methods

to_json(options = {}) click to toggle source
# File actionpack/test/controller/metal/renderers_test.rb, line 14
def to_json(options = {})
  { a: "b" }.to_json(options)
end
to_xml(options = {}) click to toggle source
# File actionpack/test/controller/metal/renderers_test.rb, line 18
def to_xml(options = {})
  { a: "b" }.to_xml(options)
end