Class: Og::HasOne

Inherits:
RefersTo show all
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

#options

Method Summary

Methods inherited from RefersTo

#enchant, foreign_key

Methods inherited from Relation

#[], #[]=, #enchant, enchant, #initialize, #method_missing, #polymorphic?, #polymorphic_marker?, resolve, resolve_names, #resolve_polymorphic, resolve_polymorphic_markers, resolve_polymorphic_relations, resolve_targets, symbol_to_class, #to_s

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