Class: ActiveRecord::FixtureSet::TableRow::HasManyThroughProxy

Inherits:
ReflectionProxy show all
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/fixture_set/table_row.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::TableRow::ReflectionProxy

Instance Method Details

#join_tableObject



33
34
35
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/fixture_set/table_row.rb', line 33

def join_table
  @association.through_reflection.table_name
end

#lhs_keyObject



29
30
31
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/fixture_set/table_row.rb', line 29

def lhs_key
  @association.through_reflection.foreign_key
end

#rhs_keyObject



25
26
27
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/fixture_set/table_row.rb', line 25

def rhs_key
  @association.foreign_key
end

#timestamp_column_namesObject



37
38
39
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/fixture_set/table_row.rb', line 37

def timestamp_column_names
  @association.through_reflection.klass.all_timestamp_attributes_in_model
end