Method: Parse::PointerCollectionProxy#remove
- Defined in:
- lib/parse/model/associations/pointer_collection_proxy.rb
#remove(parse_object) ⇒ Array<Parse::Object> #remove(parse_objects) ⇒ Array<Parse::Object>
Removes Parse::Objects from the collection.
52 53 54 55 56 57 58 |
# File 'lib/parse/model/associations/pointer_collection_proxy.rb', line 52 def remove(*items) notify_will_change! if items.count > 0 items.flatten.parse_objects.each do |item| collection.delete item end @collection end |