Skip to content

v. 0.9.5 not working with rails v6 and zeitwerk autoloading mode #2431

Open
@hadiS

Description

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 being thrown. But whenever I add them manually in my controllers like

render json: @user, serializer: UserSerializer

it works fine! Switching autoloading to classic mode works too.

When I downgrade ams to v. 0.8.5 it works too, hence serializers work fine again and are being found automatically in rails 6 with zeitwerk mode.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions