problems with class_attribute on the class's class is exposed in ruby  2.1.1

The correct behavior is to add the class_attribute on the class

Fixes #42