# File lib/mongoid/extensions/array/deletion.rb, line 22 def delete_one(object) position = index(object) position ? delete_at(position) : nil end