Class: ROM::Associations::Definitions::ManyToMany Private

Inherits:
Abstract
  • Object
show all
Defined in:
lib/rom/associations/definitions/many_to_many.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Direct Known Subclasses

OneToOneThrough

Instance Attribute Summary collapse

Attributes inherited from Abstract

#alias, #combine_keys, #foreign_key, #name, #override, #relation, #result, #source, #target, #view

Instance Method Summary collapse

Methods inherited from Abstract

#aliased?, new, #override?, process_options, resolve_target_name, #type

Methods included from Initializer

extended

Instance Attribute Details

#throughThroughIdentifier (readonly)

Returns The name of the “through” relation.

Returns:



13
# File 'lib/rom/associations/definitions/many_to_many.rb', line 13

option :through, reader: true

Instance Method Details

#through_assoc_nameObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



21
22
23
# File 'lib/rom/associations/definitions/many_to_many.rb', line 21

def through_assoc_name
  through.assoc_name
end

#through_relationObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



16
17
18
# File 'lib/rom/associations/definitions/many_to_many.rb', line 16

def through_relation
  through.relation
end