solve attribute_enums scoped method error