Skip to content

Inheriting from ActiveModelSerializers::Model to support serialization of a PORO is a bad practice #1877

@vasilakisfil

Description

@vasilakisfil

Expected behavior vs actual behavior

Expected:

class SimpleObject
  include ActiveModelSerializers::Model #includes neccesary methods

end

Actual

class SimpleObject < ActiveModelSerializers::Model

end

What would happen if my SimpleObject was inheriting from another class?

Additonal helpful information

#1272

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions