Sha256: ce28a9fa0a4c7f1f97c868c5317e53dc6f631ef4d1f9904875991835feb6b14d

Contents?: true

Size: 596 Bytes

Versions: 1

Compression:

Stored size: 596 Bytes

Contents

# frozen_string_literal: true

require "rom/types"
require "rom/associations/definitions/abstract"

module ROM
  module Associations
    module Definitions
      # @api private
      class ManyToMany < Abstract
        result :many

        # @!attribute [r] through
        #   @return [ThroughIdentifier] The name of the "through" relation
        option :through, reader: true

        # @api private
        def through_relation
          through.relation
        end

        # @api private
        def through_assoc_name
          through.assoc_name
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rom-6.0.0.alpha1 lib/rom/associations/definitions/many_to_many.rb