Check for the renamed metadata method on Mongoid >= 4.0.0.beta1
Use lambdas for the default_scope, a requirement on Mongoid >= 4.0.0.beta1