Fix active_model_serializers deprecation warning in Rails 4.1