fix support for Mongoid edge