Class#superclass_delegating_accessor from Rails is now deprecated.

Switch to Class#class_attribute instead.
See https://github.com/rails/rails/pull/14271