Fix deprecation warning

This fixes a warning caused by a new Rails version:

DEPRECATION WARNING: The cattr_* method definitions have been moved into active_support/core_ext/module/attribute_accessors.