Class: ActiveRecord::FixtureSet::ReflectionProxy

Inherits:
Object
  • Object
show all
Defined in:
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.



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

def initialize(association)
  @association = association
end

Instance Method Details

#join_tableObject



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

def join_table
  @association.join_table
end

#nameObject



716
717
718
# File 'lib/active_record/fixtures.rb', line 716

def name
  @association.name
end

#primary_key_typeObject



720
721
722
# File 'lib/active_record/fixtures.rb', line 720

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