Skip to content

ApplicationSerializer not picked up by generator #1890

@ganlron

Description

@ganlron

Expected behavior vs actual behaviour

I've created an ApplicationSerializer in app/serializers/application_serializer.rb and was expecting rails g serializer foo to inherit from this, but it still defaults to ActiveModel::Serializer.

I can get around this by passing ApplicationSerializer with --parent and it works, but wasn't expected behaviour

Environment

Rails 5.0.0.1
ruby 2.3.1p112

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