mongoid working with r4