Defines methods on mongoid model to work with arrays