:parse_strategy is deprecated
When I used the option parse_strategy: :sync which is working fine with my solution, but it shows deprecated warning message:
[Representable] :parse_strategy is deprecated. Please use a populator.
I try to find doc and read some source codes to understand populaor option, but I still couldn't figure out. Could someone point to me the the equivalent new option populator that has the same functionality to parse_strategy: :sync?
Doubling that, the docs link for populator is empty - http://trailblazer.to/gems/representable/3.0/populator.html
I have come up with a migration from parse_strategy to populator lambda, the named method signature should look similar:
collection :cast_members,
parse_strategy: lambda do |fragment, _, options|
represented = self
...
end
collection :cast_members,
populator: lambda do |fragment, represented:, **options|
...
end
Is there any documentation for the populator option? This is still empty: http://trailblazer.to/gems/representable/3.0/populator.html
What's the equivalent for parse_strategy: :find_or_initialize?