Rails 4.2 has deprecated `serialized_attributes`

* Use the new `type_for_attribute` method instead