Skip to content

TypeError wrong argument type Class in Grape 2.3.0 #94

@K0H205

Description

@K0H205

Hi🖐️
I have encountered the following error after upgrading Grape version from 2.2.0 to 2.3.0.

bin/rails aborted!
TypeError: wrong argument type Class (expected Module) (TypeError)

      extend Base
             ^^^^
~/vendor/bundle/ruby/3.3.0/gems/grape-active_model_serializers-1.5.2/lib/grape-active_model_serializers/error_formatter.rb:4:in `extend'

This Grape Pull Request have changed Base from module to class.
ruby-grape/grape#2516

Thanks!


My environment
Ruby: 3.3.0
Ruby on Rails: 7.2.2
grape: 2.3.0
grape-active_model_serializers: 1.5.2

Metadata

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