Closed wilsonsilva closed 2 months ago
I think that it's because the memory plugin doesn't define its own type container. Examples should be updated, but adding Types = Dry.Types()
at the top of a script should work too.
Thanks, @flash-gordon. I opened a PR to fix the documentation https://github.com/rom-rb/rom/pull/690
Thanks! Ahh, right, it's the old name of the type, I forgot it completely because I've been dealing with quite a bunch of languages at once recently :) It messes with your brain when same things are named differently everywhere.
I've merged the PR, let's see if the pipeline will manage to deploy it
Describe the bug
When I run the example code from https://rom-rb.org/learn/core/5.2/associations/, I get an error:
Requiring 'rom/memory/types' didn't solve the issue.
To Reproduce
Execute the code from the associations documentation:
Expected behavior
The code should behave as documented.
My environment