Class: Og::HasOne
- Defined in:
- lib/og/relation/has_one.rb
Overview
A ‘has_one’ relation.
Examples
user.profile = Profile.new user.profile user.profile(true) # reload user.profile(:reload => true)
Instance Attribute Summary
Attributes inherited from Relation
Method Summary
Methods inherited from RefersTo
Methods inherited from Relation
#[], #[]=, #enchant, 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