Class: ActiveRecord::FixtureSet::ReflectionProxy
- Inherits:
-
Object
- Object
- ActiveRecord::FixtureSet::ReflectionProxy
- Defined in:
- lib/active_record/fixtures.rb
Overview
:nodoc:
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize(association) ⇒ ReflectionProxy
constructor
A new instance of ReflectionProxy.
- #join_table ⇒ Object
- #name ⇒ Object
- #primary_key_type ⇒ Object
Constructor Details
#initialize(association) ⇒ ReflectionProxy
Returns a new instance of ReflectionProxy.
681 682 683 |
# File 'lib/active_record/fixtures.rb', line 681 def initialize(association) @association = association end |
Instance Method Details
#join_table ⇒ Object
685 686 687 |
# File 'lib/active_record/fixtures.rb', line 685 def join_table @association.join_table end |
#name ⇒ Object
689 690 691 |
# File 'lib/active_record/fixtures.rb', line 689 def name @association.name end |
#primary_key_type ⇒ Object
693 694 695 |
# File 'lib/active_record/fixtures.rb', line 693 def primary_key_type @association.klass.column_types[@association.klass.primary_key].type end |