class RenderJsonTest::JsonRenderable
Public Instance Methods
as_json(options = {})
click to toggle source
# File actionpack/test/controller/render_json_test.rb, line 10 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/render_json_test.rb, line 16 def to_json(options = {}) super except: [:c, :e] end