Sha256: 0d2da37e34d5776d30114bd5da852fbef03933056a7557596f67e1258988c6a9

Contents?: true

Size: 596 Bytes

Versions: 15

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

15 entries across 15 versions & 1 rubygems

Version Path
rom-core-5.3.2 lib/rom/associations/definitions/many_to_many.rb
rom-core-5.3.1 lib/rom/associations/definitions/many_to_many.rb
rom-core-5.3.0 lib/rom/associations/definitions/many_to_many.rb
rom-core-5.2.6 lib/rom/associations/definitions/many_to_many.rb
rom-core-5.2.5 lib/rom/associations/definitions/many_to_many.rb
rom-core-5.2.4 lib/rom/associations/definitions/many_to_many.rb
rom-core-5.2.3 lib/rom/associations/definitions/many_to_many.rb
rom-core-5.2.2 lib/rom/associations/definitions/many_to_many.rb
rom-core-5.2.1 lib/rom/associations/definitions/many_to_many.rb
rom-core-5.1.2 lib/rom/associations/definitions/many_to_many.rb
rom-core-5.1.1 lib/rom/associations/definitions/many_to_many.rb
rom-core-5.1.0 lib/rom/associations/definitions/many_to_many.rb
rom-core-5.0.2 lib/rom/associations/definitions/many_to_many.rb
rom-core-5.0.1 lib/rom/associations/definitions/many_to_many.rb
rom-core-5.0.0 lib/rom/associations/definitions/many_to_many.rb