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.


699
700
701
# File 'activerecord/lib/active_record/fixtures.rb', line 699

def initialize(association)
  @association = association
end

Instance Method Details

#join_tableObject


703
704
705
# File 'activerecord/lib/active_record/fixtures.rb', line 703

def join_table
  @association.join_table
end

#nameObject


707
708
709
# File 'activerecord/lib/active_record/fixtures.rb', line 707

def name
  @association.name
end

#primary_key_typeObject


711
712
713
# File 'activerecord/lib/active_record/fixtures.rb', line 711

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