Module: Roar::Representer::JSON::HAL::Resources
- Defined in:
- lib/roar_extensions/json_hal_extensions.rb
Instance Method Summary collapse
Instance Method Details
#compile_fragment(bin, doc) ⇒ Object
2 3 4 5 |
# File 'lib/roar_extensions/json_hal_extensions.rb', line 2 def compile_fragment(bin, doc) return super unless bin.[:embedded] super(bin, doc["_embedded"] ||= {}) end |