Class: ActiveRecord::FixtureSet::ReflectionProxy
- Defined in:
- activerecord/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.
717 718 719 |
# File 'activerecord/lib/active_record/fixtures.rb', line 717 def initialize(association) @association = association end |
Instance Method Details
#join_table ⇒ Object
721 722 723 |
# File 'activerecord/lib/active_record/fixtures.rb', line 721 def join_table @association.join_table end |
#name ⇒ Object
725 726 727 |
# File 'activerecord/lib/active_record/fixtures.rb', line 725 def name @association.name end |
#primary_key_type ⇒ Object
729 730 731 |
# File 'activerecord/lib/active_record/fixtures.rb', line 729 def primary_key_type @association.klass.type_for_attribute(@association.klass.primary_key).type end |