123456789_123456789_123456789_123456789_123456789_

Class: ActiveRecord::FixtureSet::TableRow::ReflectionProxy

Do not use. This class is for internal use only.
Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Subclasses:
Inherits: Object
Defined in: activerecord/lib/active_record/fixture_set/table_row.rb

Class Method Summary

Instance Method Summary

Constructor Details

.new(association) ⇒ ReflectionProxy

[ GitHub ]

  
# File 'activerecord/lib/active_record/fixture_set/table_row.rb', line 7

def initialize(association)
  @association = association
end

Instance Method Details

#join_table

[ GitHub ]

  
# File 'activerecord/lib/active_record/fixture_set/table_row.rb', line 11

def join_table
  @association.join_table
end

#name

[ GitHub ]

  
# File 'activerecord/lib/active_record/fixture_set/table_row.rb', line 15

def name
  @association.name
end

#primary_key_type

[ GitHub ]

  
# File 'activerecord/lib/active_record/fixture_set/table_row.rb', line 19

def primary_key_type
  @association.klass.type_for_attribute(@association.klass.primary_key).type
end