Replace class_inheritable_accessor with class_attribute

This change is so that slug can work on Rails 3.2 apps - class_attribute was added in Rails 3.0 but class_inheritable_accessor is deprecated as of 3.2.