Class: ActiveRecord::FixtureSet::ReflectionProxy

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

Overview

:nodoc:

Direct Known Subclasses

HasManyThroughProxy

Instance Method Summary collapse

Constructor Details

#initialize(association) ⇒ ReflectionProxy

Returns a new instance of ReflectionProxy.


679
680
681
# File 'activerecord/lib/active_record/fixtures.rb', line 679

def initialize(association)
  @association = association
end

Instance Method Details

#join_tableObject


683
684
685
# File 'activerecord/lib/active_record/fixtures.rb', line 683

def join_table
  @association.join_table
end

#nameObject


687
688
689
# File 'activerecord/lib/active_record/fixtures.rb', line 687

def name
  @association.name
end

#primary_key_typeObject


691
692
693
# File 'activerecord/lib/active_record/fixtures.rb', line 691

def primary_key_type
  @association.klass.column_types[@association.klass.primary_key].type
end