Fix compatibility with ActiveModel Serializers gem, fixes #121