Sha256: edf365653e9aeebdbbb538e2ffcb3324d804b6a75a2804979660df5a0e566333
Contents?: true
Size: 537 Bytes
Versions: 1
Compression:
Stored size: 537 Bytes
Contents
module Roar module JSON module JSONAPI # @api private module ForCollection def collection_representer!(_options) singular = self # e.g. Song::Representer nested_builder.(_base: default_nested_class, _features: [Roar::JSON, Roar::Hypermedia, JSONAPI::Defaults, JSONAPI::Meta], _block: proc do collection :to_a, as: :data, decorator: singular, wrap: false include Document include ResourceCollection end) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roar-jsonapi-0.0.3 | lib/roar/json/json_api/for_collection.rb |