When i have a Domain with a Resource, lets say Flora and Plant, i can add to the code interface of the Domain in a fragment by re-opening the resources block.
Like this:
resources do
resource App.Flora.Plant do
define :grow
end
end
But calling Ash.Domain.Info.resources(App.Flora) now returns the resource twice.
[App.Flora.Plant, App.Flora.Plant]
Is there a way to make that work without this change up the output of the inspection tools?
I have a directory/namespace that contains as much of the code for a feature as possible. A supervisor, actions, etc, and I want to add the new actions to the domainās code interface.
If here is a better way than adding the different files from my feature dir in the corresponding files in the ācoreā app iād be happy to hear about it.
Ah, sorry I totally misunderstood the fragment bit. That does seem like a problem. Itās not necessarily a bug but we can fix it by combining any duplicate resource declarations at compile time. Please open an issue!