solving incompatibility issue mongoid vs rails 4.1