Class: ActiveRecord::FixtureSet::TableRow::HasManyThroughProxy
Overview
Instance Method Summary
collapse
#initialize, #name, #primary_key_type
Instance Method Details
#join_table ⇒ Object
33
34
35
|
# File 'activerecord/lib/active_record/fixture_set/table_row.rb', line 33
def join_table
@association.through_reflection.table_name
end
|
29
30
31
|
# File 'activerecord/lib/active_record/fixture_set/table_row.rb', line 29
def lhs_key
@association.through_reflection.foreign_key
end
|
25
26
27
|
# File 'activerecord/lib/active_record/fixture_set/table_row.rb', line 25
def rhs_key
@association.foreign_key
end
|
#timestamp_column_names ⇒ Object
37
38
39
|
# File 'activerecord/lib/active_record/fixture_set/table_row.rb', line 37
def timestamp_column_names
@association.through_reflection.klass.all_timestamp_attributes_in_model
end
|