Sha256: d6c05fb093c82a3f2cc03a56993d6b33f02124954fc3192fc550cde1ed9df301
Contents?: true
Size: 441 Bytes
Versions: 2
Compression:
Stored size: 441 Bytes
Contents
require 'ivy/serializers/documents/document' module Ivy module Serializers module Documents class IndividualResource < Document def generate_included(generator) @serializer.relationships(self, @primary_resource) super end def generate_primary_resource(generator) generator.primary_resource(@primary_resource_name, @primary_resource) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ivy-serializers-0.4.0 | lib/ivy/serializers/documents/individual_resource.rb |
ivy-serializers-0.3.0 | lib/ivy/serializers/documents/individual_resource.rb |