Update lib/preferences.rb

Use class_attribute instead of class_inheritable_hash