Class: MongoMapper::Plugins::Associations::ManyEmbeddedProxy
- Inherits:
-
EmbeddedCollection
- Object
- Proxy
- Collection
- EmbeddedCollection
- MongoMapper::Plugins::Associations::ManyEmbeddedProxy
- Defined in:
- lib/mongo_mapper/plugins/associations/many_embedded_proxy.rb
Instance Attribute Summary
Attributes inherited from Proxy
Instance Method Summary collapse
Methods inherited from EmbeddedCollection
Methods inherited from Collection
Methods inherited from Proxy
#===, #blank?, #initialize, #inspect, #loaded, #loaded?, #nil?, #present?, #proxy_respond_to?, #reload, #reset, #respond_to?, #send
Constructor Details
This class inherits a constructor from MongoMapper::Plugins::Associations::Proxy
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class MongoMapper::Plugins::Associations::Proxy
Instance Method Details
#replace(values) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/mongo_mapper/plugins/associations/many_embedded_proxy.rb', line 5 def replace(values) @_values = values.map do |v| v.respond_to?(:attributes) ? v.attributes : v end reset end |