lib/greygoo/role/container.rb
def letgo(object, collection_name = 'objects', *a)
				return if !self.has?(object, collection_name)
				sym = "@#{collection_name}".to_sym
				objs(sym).delete_if {|o| o.id.id == object.id.id}
				db_update({}, {'$pull' => { collection_name => { id: object.id.id }}})
			end
# Removes the object from the container. Does not put it anywhere else.
#
# @param [Object] object The object to remove
Removes the object from the container. Does not put it anywhere else.
Removes the object from the container . Does not put it anywhere else .
def letgo(object, collection_name = 'objects', *a)
				return if !self.has?(object, collection_name)
				sym = "@#{collection_name}".to_sym
				objs(sym).delete_if {|o| o.id.id == object.id.id}
				db_update({}, {'$pull' => { collection_name => { id: object.id.id }}})
			end
def letgo ( object , collection_name = 'objects' , * a ) return if ! self . has? ( object , collection_name ) sym = "@#{collection_name}" . to_sym objs ( sym ) . delete_if { | o | o . id . id == object . id . id } db_update ( { } , { '$pull' => { collection_name => { id : object . id . id } } } ) end
Removes the object from the container.
Removes the object from the container .
object
collection_name
a
object The object to remove
object The object to remove