workaround mongoid in rails 4