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.
708 709 710 |
# File 'lib/active_record/fixtures.rb', line 708 def initialize(association) @association = association end |
Instance Method Details
#join_table ⇒ Object
712 713 714 |
# File 'lib/active_record/fixtures.rb', line 712 def join_table @association.join_table end |
#name ⇒ Object
716 717 718 |
# File 'lib/active_record/fixtures.rb', line 716 def name @association.name end |
#primary_key_type ⇒ Object
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 |