Methods
Instance Public methods
describe_property(property)
Link
Source: show
# File rhino/rhino/lib/rhino/resource/active_record_tree.rb 20 def describe_property(property) 21 return super unless property == "children" 22 23 super.deep_merge({ type: :array, items: ref_descriptor(model_name.element) }) 24 end
readable_params(type, refs = references)
Link
FIXME: Need to recurse to a MAX DEPTH
Source: show
# File rhino/rhino/lib/rhino/resource/active_record_tree.rb 27 def readable_params(type, refs = references) 28 # Remove the base children property and replace with hash 29 base_show = super - ["children"] 30 base_show + [children: [base_show]] 31 end