active_model_serializers
active_model_serializers copied to clipboard
ActiveModel::Serializer implementation and Rails hooks
Message: `NOTE: ActiveModel::SerializableResource.new is deprecated; use ActiveModelSerializers::SerializableResource. instead` #### Expected behavior vs actual behavior Expected behavior: The deprecation message should Indicate what the new/replacement method is. Actual behavior: The new...
#### Purpose there is a link pointing to a non-existent page #### Changes redirect to the correct page (0-10-stable)
#### Feature Request TL;DR: add `ancestors` method to a serialize instance In the same way that it is possible to access `scope` and `object` inside a serializer instance, we'd also...
#### Purpose When I profiled a simple sample with stackprof, I found that `ActiveSupport::Inflector#apply_inflections` was taking a long time. ```rb class Blog < ActiveModelSerializers::Model attributes :id, :name, :authors end class...
#### Purpose jsonapi-renderer provides an `allow_wildcard` configuration which can be used to configure how `*` and `**` include directives are treated. Since these wildcards are specific to AMS, in some...
I'm working on an app, and I'm updating from the version `0.8.3` to `0.10.5`. Before the update the errors were serialized like this: ```json { "errors": { "code": 404, "message":...
#### Purpose - bring back changes that were removed from #2368 unintentionally - make travis green
#### Expected behavior vs actual behavior Recently upgraded from Rails 4.2 to Rails 5. I am on active_model_serializers 0.8.4 All serializers are returning a reference string instead of calling as_json...
I want to fix this issue : https://github.com/rails-api/active_model_serializers/issues/2250 To do so I need to ask to the serializer if an attribute has a key in the default serializer. From what...
0.10.7 When validation errors occurs, the pointers does not use the keys from the serializer : serializer : `attribute :ville,key: :city` JSON : `{"errors":[{"source":{"pointer":"/data/attributes/ville"},"detail":"doit être rempli(e)"}]}` The pointer should be...