Class: MongoMapper::Plugins::Associations::Collection
- Defined in:
- lib/mongo_mapper/plugins/associations/collection.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Proxy
#association, #proxy_owner, #target
Instance Method Summary collapse
- #include?(*args) ⇒ Boolean
- #reset ⇒ Object
- #to_ary ⇒ Object (also: #to_a)
Methods inherited from Proxy
#as_json, #blank?, #initialize, #inspect, #loaded, #loaded?, #nil?, #present?, #proxy_respond_to?, #reload, #replace, #respond_to?, #send, #to_json
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
#include?(*args) ⇒ Boolean
17 18 19 20 |
# File 'lib/mongo_mapper/plugins/associations/collection.rb', line 17 def include?(*args) load_target target.include?(*args) end |
#reset ⇒ Object
22 23 24 25 |
# File 'lib/mongo_mapper/plugins/associations/collection.rb', line 22 def reset super target = [] end |