clowne-rb / clowne

A flexible gem for cloning models
https://clowne.evilmartians.io
MIT License
317 stars 18 forks source link

Question: Dynamic traits for child cloners #74

Closed pranavbabu closed 4 months ago

pranavbabu commented 4 months ago

Thank You!

First and foremost, I want to extend my heartfelt gratitude to the authors and contributors of this fantastic library. Your hard work and dedication are truly appreciated!

Question

I'm experiencing a problem where I have assocciations with join table which I update after both dependent tables are cloned, but in certain cases I want to exclude this join table accossiaction of being cloned if there is a trait on a main cloner like :without_of_table_that_involded_in_join_table , I haven't found any possibility to make child cloners traits dynamicly set , maybe it would be nice to have same logic as with using Procs in params for traits, something like this traits: Proc.new |params| end

Please let me know if there is any workarounds, thanks.