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.
699 700 701 |
# File 'lib/active_record/fixtures.rb', line 699 def initialize(association) @association = association end |
Instance Method Details
#join_table ⇒ Object
703 704 705 |
# File 'lib/active_record/fixtures.rb', line 703 def join_table @association.join_table end |
#name ⇒ Object
707 708 709 |
# File 'lib/active_record/fixtures.rb', line 707 def name @association.name end |
#primary_key_type ⇒ Object
711 712 713 |
# File 'lib/active_record/fixtures.rb', line 711 def primary_key_type @association.klass.type_for_attribute(@association.klass.primary_key).type end |