On Rails 4, Anonymous class is not allowed. See https://github.com/kenn/slavery/issues/2. Also, Model.scoped is deprecated. v1.3.0