Including Duration as a module seems to work better with latest Mongoid.