Class: ActiveRecord::FixtureSet::HasManyThroughProxy

Inherits:
ReflectionProxy show all
Defined in:
activerecord/lib/active_record/fixtures.rb

Overview

:nodoc:

Instance Method Summary collapse

Methods inherited from ReflectionProxy

#initialize, #name, #primary_key_type

Constructor Details

This class inherits a constructor from ActiveRecord::FixtureSet::ReflectionProxy

Instance Method Details

#join_tableObject


725
726
727
# File 'activerecord/lib/active_record/fixtures.rb', line 725

def join_table
  @association.through_reflection.table_name
end

#lhs_keyObject


721
722
723
# File 'activerecord/lib/active_record/fixtures.rb', line 721

def lhs_key
  @association.through_reflection.foreign_key
end

#rhs_keyObject


717
718
719
# File 'activerecord/lib/active_record/fixtures.rb', line 717

def rhs_key
  @association.foreign_key
end