a ruby mongoid contract for hexe