Module: MongoMapper::Associations::InstanceMethods
- Defined in:
- lib/mongo_mapper/associations.rb
Instance Method Summary collapse
Instance Method Details
#associations ⇒ Object
65 66 67 |
# File 'lib/mongo_mapper/associations.rb', line 65 def associations self.class.associations end |
#get_proxy(association) ⇒ Object
69 70 71 72 73 74 75 |
# File 'lib/mongo_mapper/associations.rb', line 69 def get_proxy(association) unless proxy = self.instance_variable_get(association.ivar) proxy = association.proxy_class.new(self, association) self.instance_variable_set(association.ivar, proxy) end proxy end |