active_model_serializers
active_model_serializers copied to clipboard
ActiveModel::Serializer implementation and Rails hooks
#### Expected behavior vs actual behavior So, we want to have the key `object` to be present in the response of the serializer. However, since object is defined as `attr_accessor...
#### Expected behavior vs actual behavior Consider a simple streaming example like this: ```ruby class StreamingTestController < ApplicationController include ActionController::Live def index # This header doesn't seem to be necessary,...
#### Purpose Fixes the error, when `jsonapi_use_foreign_key_on_belongs_to_relationship=true` and `belongs_to` relationship is polymorphic and empty.
#### Expected behavior vs actual behavior If there is a multiple referenced resource A which `has_one` another resource B, the resource B is included only by declaring the inclusion through...
Hi! Does anybody else have problems with active model serialisers v. 0.9.5 with zeitwerk autoloading mode in rails 6? My serializers are being ignored completely. No errors or warnings are...
#### Purpose Improved README documentation #### Changes  The github.io link for `JSON:API Suite` in the Alternatives-chapter in the README was returning status 404. https://jsonapi-suite.github.io/jsonapi_suite/ The top page of `JSON:API...
### Purpose I'd like the alternatives list more comprehensive. #### Changes Added Alba to alternatives list. #### Caveats #### Related GitHub issues #### Additional helpful information
Before upgrading from 0.10.5 to 0.10.10 this line worked without any errors ``` render json: {first_key: "some string", second_key: "another string" } , serializer: SomeCustomSerializer ``` Now it produces an...
hi. would be great if you could dump a release for rails 7 thanks
#### Expected behavior vs actual behavior From the serializer of an association, I would like to access the object of the parent serializer. #### Steps to reproduce Say we have...