Fixed deprecation warning for class_inheritable_attribute in rails 3.1

porting commit 20ee814 from sunspot/sunspot