Module: Transmutation::Serialization::Rendering
- Defined in:
- lib/transmutation/serialization/rendering.rb
Instance Method Summary collapse
Instance Method Details
#render(json: nil, serialize: true, namespace: nil, serializer: nil, max_depth: 1, **args) ⇒ Object
6 7 8 9 10 11 |
# File 'lib/transmutation/serialization/rendering.rb', line 6 def render(json: nil, serialize: true, namespace: nil, serializer: nil, max_depth: 1, **args) return super(**args) unless json return super(**args, json:) unless serialize super(**args, json: serialize(json, namespace:, serializer:, max_depth:)) end |