Skip to content

Avoid class colision when using Array Resources #3682

@Paul-Bob

Description

@Paul-Bob

Context

As mentioned in this issue, when using Array Resources, Avo automatically generates a class based on the resource's name. For example, Avo::Resources::Movie results in the creation of a Movie class.

To prevent naming collisions with the parent app, Avo should first check if the class already exists.

We could explore the possibility of namespacing the generated class under Avo::Movie to avoid conflicts.

Metadata

Metadata

Assignees

Labels

AnnoyanceSomething that's annoying but not critical

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions