class Sequel::Plugins::ManyThroughMany::ManyThroughManyAssociationReflection

  1. lib/sequel/plugins/many_through_many.rb
Parent: ManyThroughMany

The AssociationReflection subclass for many_through_many associations.

Methods

Public Instance

  1. default_associated_key_alias
  2. reciprocal

Public Instance methods

default_associated_key_alias ()

The default associated key alias(es) to use when eager loading associations via eager.

[show source]
# File lib/sequel/plugins/many_through_many.rb, line 75
def default_associated_key_alias
  self[:uses_left_composite_keys] ? (0...self[:through].first[:left].length).map{|i| :"x_foreign_key_#{i}_x"} : :x_foreign_key_x
end
reciprocal ()

Many through many associations don’t have a reciprocal

[show source]
# File lib/sequel/plugins/many_through_many.rb, line 88
def reciprocal
  nil
end