Class: Og::BelongsTo
- Defined in:
- lib/og/relation/belongs_to.rb
Instance Attribute Summary
Attributes inherited from Relation
Instance Method Summary collapse
Methods inherited from Relation
#[], #[]=, enchant, #initialize, #method_missing, #resolve_options, #resolve_target
Constructor Details
This class inherits a constructor from Og::Relation
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Og::Relation
Instance Method Details
#enchant ⇒ Object
7 8 9 10 |
# File 'lib/og/relation/belongs_to.rb', line 7 def enchant super target_class. :descendants, [owner_class, foreign_key] end |