Sha256: b238f3f893ee979ca6a2d1a4853e28a9d4f5f246c84a3332b5998392a2c597e6

Contents?: true

Size: 366 Bytes

Versions: 2

Compression:

Stored size: 366 Bytes

Contents

require "shamu/json_api/base_builder"

module Shamu
  module JsonApi

    # Build a relationship from one resource to another.
    class RelationshipBuilder < BaseBuilder

      # (see Context#include_resource)
      def include_resource( resource, serializer = nil, &block )
        context.include_resource resource, serializer, &block
      end

    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shamu-0.0.4 lib/shamu/json_api/relationship_builder.rb
shamu-0.0.3 lib/shamu/json_api/relationship_builder.rb