Use `class_attribute` for Rails 3.2 compatibility